5个版本

0.0.10 2024年2月21日
0.0.9 2023年10月17日
0.0.7 2023年5月20日

#810HTTP服务器

Download history 46/week @ 2024-03-11 15/week @ 2024-03-18 32/week @ 2024-04-01 11/week @ 2024-04-08 9/week @ 2024-04-15 15/week @ 2024-04-22 15/week @ 2024-04-29 8/week @ 2024-05-06 1/week @ 2024-05-13 27/week @ 2024-05-20 5/week @ 2024-05-27 44/week @ 2024-06-03 7/week @ 2024-06-10 7/week @ 2024-06-17 13/week @ 2024-06-24

每月71次下载
2 个Crate中使用(通过 uwebsockets_rs

MIT 许可证

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用于uWebSockets CAPI

用法

为了在Rust应用程序中使用uWebSockets,您必须将以下静态库安装并链接到您的二进制文件中 - libzlibuvlibssllibcryptolibstdc++

您的build.rs文件可能看起来像这样

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

开发

请确保获取子模块 - uWebSockets 和 uSockets。除非您想这么做,否则您可能不想使用 --recursive 选项获取所有子模块。

依赖关系

~0–1.8MB
~36K SLoC