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

..03-May-2022-

csmith-fuzzing/H03-May-2022-6646

src/H03-May-2022-25,58018,470

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

.cargo_vcs_info.jsonH A D01-Jan-197074 65

Cargo.lockH A D01-Jan-197018 KiB414365

Cargo.tomlH A D01-Jan-19702.6 KiB11089

Cargo.toml.orig-cargoH A D23-Sep-20192.1 KiB8776

LICENSEH A D25-Jun-20191.5 KiB3023

README.mdH A D25-Jun-20191 KiB4731

build.rsH A D20-Sep-20192.1 KiB7562

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## API Reference
41
42[API reference documentation is on docs.rs](https://docs.rs/bindgen)
43
44## Contributing
45
46[See `CONTRIBUTING.md` for hacking on `bindgen`!](./CONTRIBUTING.md)
47