5 releases

0.0.10 Feb 21, 2024
0.0.9 Oct 17, 2023
0.0.7 May 20, 2023

#751 in HTTP server

Download history 44/week @ 2024-06-03 7/week @ 2024-06-10 7/week @ 2024-06-17 13/week @ 2024-06-24 2/week @ 2024-07-08 22/week @ 2024-07-15 12/week @ 2024-07-29 10/week @ 2024-08-12 15/week @ 2024-08-19 21/week @ 2024-08-26 23/week @ 2024-09-09 8/week @ 2024-09-16

53 downloads per month
Used in 2 crates (via uwebsockets_rs)

MIT license

550KB
11K SLoC

C 6.5K SLoC // 0.2% comments C++ 4K SLoC // 0.1% comments Rust 421 SLoC // 0.0% comments JavaScript 74 SLoC // 0.2% comments Shell 36 SLoC // 0.1% comments Swift 30 SLoC // 0.2% comments

Rust sys crate for uWebSockets CAPI

Usage

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++");

Development

Make sure to fetch submodules - uWebSockets and uSockets. You probably don't want to fetch all submodules with --recursive option unless you want to.

Dependencies

~0–1.9MB
~37K SLoC