Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
csmith-fuzzing/ | H | 03-May-2022 | - | 66 | 46 | |
src/ | H | 03-May-2022 | - | 26,478 | 19,131 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 21-May-2020 | 74 | 6 | 5 | |
Cargo.lock | H A D | 21-May-2020 | 16.1 KiB | 371 | 326 | |
Cargo.toml | H A D | 21-May-2020 | 2.7 KiB | 118 | 96 | |
Cargo.toml.orig-cargo | H A D | 21-May-2020 | 2.3 KiB | 91 | 80 | |
LICENSE | H A D | 14-May-2020 | 1.5 KiB | 30 | 23 | |
README.md | H A D | 14-May-2020 | 1.2 KiB | 53 | 34 | |
build.rs | H A D | 14-May-2020 | 2.1 KiB | 75 | 62 |
README.md
1[![crates.io](https://img.shields.io/crates/v/bindgen.svg)](https://crates.io/crates/bindgen) 2[![docs.rs](https://docs.rs/bindgen/badge.svg)](https://docs.rs/bindgen/) 3 4# `bindgen` 5 6**`bindgen` automatically generates Rust FFI bindings to C (and some C++) libraries.** 7 8For example, given the C header `doggo.h`: 9 10```c 11typedef struct Doggo { 12 int many; 13 char wow; 14} Doggo; 15 16void eleven_out_of_ten_majestic_af(Doggo* pupper); 17``` 18 19`bindgen` produces Rust FFI code allowing you to call into the `doggo` library's 20functions and use its types: 21 22```rust 23/* automatically generated by rust-bindgen */ 24 25#[repr(C)] 26pub struct Doggo { 27 pub many: ::std::os::raw::c_int, 28 pub wow: ::std::os::raw::c_char, 29} 30 31extern "C" { 32 pub fn eleven_out_of_ten_majestic_af(pupper: *mut Doggo); 33} 34``` 35 36## Users Guide 37 38[ Read the `bindgen` users guide here! ](https://rust-lang.github.io/rust-bindgen) 39 40## MSRV 41 42The minimum supported Rust version is **1.34**. 43 44No MSRV bump policy has been established yet, so MSRV may increase in any release. 45 46## API Reference 47 48[API reference documentation is on docs.rs](https://docs.rs/bindgen) 49 50## Contributing 51 52[See `CONTRIBUTING.md` for hacking on `bindgen`!](./CONTRIBUTING.md) 53