Based on uWebSockets, tokio and synchronous rust server (if you are not interested in async you might find that lib useful)
In order to use uWebSockets in your Rust application you will have to 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:
rust
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++");