Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/workflows/ | H | 03-May-2022 | - | 51 | 48 | |
examples/ | H | 03-May-2022 | - | 8 | 6 | |
nghttp2/ | H | 03-May-2022 | - | 256,003 | 187,863 | |
src/ | H | 03-May-2022 | - | 4,826 | 1,398 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 02-Jun-2020 | 74 | 6 | 5 | |
.gitignore | H A D | 11-Sep-2018 | 18 | 3 | 2 | |
.gitmodules | H A D | 11-Sep-2018 | 80 | 4 | 3 | |
Cargo.lock | H A D | 02-Jun-2020 | 839 | 24 | 20 | |
Cargo.toml | H A D | 02-Jun-2020 | 974 | 30 | 27 | |
Cargo.toml.orig-cargo | H A D | 02-Jun-2020 | 474 | 25 | 20 | |
LICENSE-APACHE | H A D | 11-Sep-2018 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 11-Sep-2018 | 1 KiB | 26 | 22 | |
README.md | H A D | 04-Mar-2020 | 1.2 KiB | 50 | 36 | |
build.rs | H A D | 04-Mar-2020 | 3.1 KiB | 89 | 79 |
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