Debian Codegraph @

/

debian rust-libnghttp2-sys 0.1.3-1debian librust-libnghttp2-sys-dev debian librust-libnghttp2-sys+default-dev debian librust-libnghttp2-sys-0-dev debian librust-libnghttp2-sys-0+default-dev debian librust-libnghttp2-sys-0.1-dev debian librust-libnghttp2-sys-0.1+default-dev debian librust-libnghttp2-sys-0.1.3-dev debian librust-libnghttp2-sys-0.1.3+default-dev debianjsonmakefilemarkdownrustshelltomlyaml 20 files · 60 symbols
View dependency graph

Depends on

  • debhelper (debhelper)
  • dh-cargo (dh-cargo)
  • nghttp2 (libnghttp2-dev)
  • rust-libc (librust-libc-0.2+default-dev)
  • cargo, librust-pkg-config-0.3+default-dev, libstd-rust-dev, rustc
README (full)

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

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

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.

dir .github/
dir debian/
dir examples/
dir src/
file .cargo_vcs_info.json
file .gitignore
file .gitmodules
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md
file build.rs