• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/workflows/H03-May-2022-5148

examples/H03-May-2022-86

nghttp2/H03-May-2022-256,003187,863

src/H03-May-2022-4,8261,398

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D02-Jun-202074 65

.gitignoreH A D11-Sep-201818 32

.gitmodulesH A D11-Sep-201880 43

Cargo.lockH A D02-Jun-2020839 2420

Cargo.tomlH A D02-Jun-2020974 3027

Cargo.toml.orig-cargoH A D02-Jun-2020474 2520

LICENSE-APACHEH A D11-Sep-201810.6 KiB202169

LICENSE-MITH A D11-Sep-20181 KiB2622

README.mdH A D04-Mar-20201.2 KiB5036

build.rsH A D04-Mar-20203.1 KiB8979

README.md

1# nghttp2-sys
2
3A common library for linking `nghttp2` to rust programs (also known as
4libnghttp2).
5
6## Generating bindings
7
8Before `bindgen`:
9
10* Copy `nghttp2ver.h.in` to `nghttp2ver.h`
11* Edit `nghttp2ver.h` to remove `@FOO@`, replacing with 0
12
13```sh
14$ bindgen \
15  ./nghttp2/lib/includes/nghttp2/nghttp2.h \
16  -o src/lib.rs \
17  --no-layout-tests \
18  --distrust-clang-mangling \
19  --no-prepend-enum-name \
20  --rustfmt-bindings \
21  --whitelist-function '.*nghttp2.*' \
22  --whitelist-type '.*nghttp2.*' \
23  --whitelist-var '.*nghttp2.*' \
24  -- \
25  -I ./nghttp2/lib/includes
26```
27
28Afterwards
29
30* Remove `*vprintf*`
31* Remove `va_list`-related things
32* Add `#![allow(bad_style)]`
33
34# License
35
36This project is licensed under either of
37
38 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
39   http://www.apache.org/licenses/LICENSE-2.0)
40 * MIT license ([LICENSE-MIT](LICENSE-MIT) or
41   http://opensource.org/licenses/MIT)
42
43at your option.
44
45### Contribution
46
47Unless you explicitly state otherwise, any contribution intentionally submitted
48for inclusion in `nghttp2-sys` by you, as defined in the Apache-2.0 license,
49shall be dual licensed as above, without any additional terms or conditions.
50