11个版本

使用旧的Rust 2015

0.1.10+1.61.0 2024年4月12日
0.1.9+1.58.0 2024年1月2日
0.1.8+1.55.1 2023年8月7日
0.1.7+1.45.0 2021年9月20日
0.1.1 2018年11月25日

HTTP服务器中排名第129位

Download history · Rust 包仓库 81581/week @ 2024-04-27 · Rust 包仓库 83843/week @ 2024-05-04 · Rust 包仓库 84481/week @ 2024-05-11 · Rust 包仓库 81092/week @ 2024-05-18 · Rust 包仓库 87734/week @ 2024-05-25 · Rust 包仓库 91425/week @ 2024-06-01 · Rust 包仓库 82346/week @ 2024-06-08 · Rust 包仓库 89585/week @ 2024-06-15 · Rust 包仓库 88584/week @ 2024-06-22 · Rust 包仓库 83582/week @ 2024-06-29 · Rust 包仓库 83261/week @ 2024-07-06 · Rust 包仓库 102666/week @ 2024-07-13 · Rust 包仓库 121358/week @ 2024-07-20 · Rust 包仓库 110730/week @ 2024-07-27 · Rust 包仓库 120359/week @ 2024-08-03 · Rust 包仓库 114533/week @ 2024-08-10 · Rust 包仓库

每月下载量达485,179
192 Crates中使用(直接使用2个)

MIT/Apache

7.5MB
199K SLoC

C 108K SLoC // 0.1% comments · Rust 包仓库 C++ 50K SLoC // 0.1% comments · Rust 包仓库 Ruby 23K SLoC // 0.2% comments · Rust 包仓库 Happy 7K SLoC · Rust 包仓库 Go 5.5K SLoC // 0.1% comments · Rust 包仓库 Python 2K SLoC // 0.3% comments · Rust 包仓库 Rust 1.5K SLoC // 0.0% comments · Rust 包仓库 Automake 1.5K SLoC // 0.2% comments · Rust 包仓库 M4 877 SLoC // 0.2% comments · Rust 包仓库 Batch 232 SLoC · Rust 包仓库 RPM Specfile 59 SLoC · Rust 包仓库 Shell 16 SLoC · Rust 包仓库 Bitbake 2 SLoC · Rust 包仓库

包含(神秘的autoconf代码,40KB)nghttp2/configure.ac

nghttp2-sys

用于将 nghttp2 链接到Rust程序(也称为libnghttp2)的通用库。

生成绑定

bindgen 之前

  • nghttp2ver.h.in 复制到 nghttp2ver.h
  • 编辑 nghttp2ver.h 以删除 @FOO@,并用0替换
$ bindgen \
  ./nghttp2/lib/includes/nghttp2/nghttp2.h \
  -o src/lib.rs \
  --no-layout-tests \
  --distrust-clang-mangling \
  --no-prepend-enum-name \
  --rustfmt-bindings \
  --whitelist-function '.*nghttp2.*' \
  --whitelist-type '.*nghttp2.*' \
  --whitelist-var '.*nghttp2.*' \
  -- \
  -I ./nghttp2/lib/includes

之后

  • 删除 *vprintf*
  • 删除与 va_list 相关的内容
  • 添加 #![allow(bad_style)]

许可证

该项目受以下任一许可证的约束:

由您选择。

贡献

除非您明确声明,否则您提交给 nghttp2-sys 的任何贡献,根据Apache-2.0许可证定义,将作为上述双重许可证发布,不附加任何额外的条款或条件。

依赖项