libnghttp2-sys

Crates.iolibnghttp2-sys
lib.rslibnghttp2-sys
version0.1.10+1.61.0
sourcesrc
created_at2018-09-12 19:57:19.785896
updated_at2024-04-12 20:55:17.130133
descriptionFFI bindings for libnghttp2 (nghttp2)
homepagehttps://github.com/alexcrichton/nghttp2-rs
repositoryhttps://github.com/alexcrichton/nghttp2-rs
max_upload_size
id84434
size9,972,076
Alex Crichton (alexcrichton)

documentation

README

nghttp2-sys

A common library for linking nghttp2 to rust programs (also known as libnghttp2).

Generating bindings

Before bindgen:

  • Copy nghttp2ver.h.in to nghttp2ver.h
  • Edit nghttp2ver.h to remove @FOO@, replacing with 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

Afterwards

  • Remove *vprintf*
  • Remove va_list-related things
  • Add #![allow(bad_style)]

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in nghttp2-sys by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 33

cargo fmt