Crates.io | libuwebsockets-sys |
lib.rs | libuwebsockets-sys |
version | 0.0.10 |
source | src |
created_at | 2023-05-14 14:46:43.168219 |
updated_at | 2024-02-21 18:19:52.622356 |
description | Bindings to the uWebSockets CAPI |
homepage | https://github.com/GenrikhFetischev/libuwebsockets-sys |
repository | |
max_upload_size | |
id | 864307 |
size | 1,147,923 |
In order to use uWebSockets in your Rust application you will have to install and link the following static libraries to you
binary - libz
, libuv
, libssl
, libcrypto
and libstdc++
.
It may look something like that in your build.rs file:
println!("cargo:rustc-link-lib=z");
println!("cargo:rustc-link-lib=uv");
println!("cargo:rustc-link-lib=ssl");
println!("cargo:rustc-link-lib=crypto");
println!("cargo:rustc-link-lib=stdc++");
Make sure to fetch submodules - uWebSockets and uSockets. You probably don't want to fetch all submodules with --recursive option unless you want to.