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

..03-May-2022-

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

examples/H03-May-2022-86

nghttp2/H07-May-2022-300,850226,270

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

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

.cargo_vcs_info.jsonH A D01-Jan-197074 65

.gitignoreH A D29-Nov-197318 32

.gitmodulesH A D29-Nov-197380 43

Cargo.lockH A D01-Jan-1970576 2420

Cargo.tomlH A D01-Jan-1970916 2926

Cargo.toml.orig-cargoH A D29-Nov-1973474 2520

LICENSE-APACHEH A D29-Nov-197310.6 KiB202169

LICENSE-MITH A D29-Nov-19731 KiB2622

README.mdH A D29-Nov-19731.2 KiB5036

build.rsH A D29-Nov-19733.7 KiB115105

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