README.md
1# Rust bindings for vboot_reference
2
3This path contains the vboot_reference-sys crate which uses bindgen to generate
4Rust bindings for the vboot_reference C library.
5
6Each header is included as its own submodule. To use these bindings:
7 * Add `vboot_reference-sys` to your `Cargo.toml` for example:
8```toml
9[dependencies]
10vboot_reference-sys = { path = "../../vboot_reference/rust/vboot_reference-sys" }
11```
12 * Include the symbols you need for example:
13```rust
14use vboot_reference_sys::crossystem::*;
15```
16
17The `build.rs` in `vboot_reference-sys` takes care of adding the necessary
18includes and linker flags for `vboot_host` through the `pkg-config` crate.
19