Debian Codegraph @

3rdparty/vboot/rust/README.md

raw symbols SCIP
1 # Rust bindings for vboot_reference
2
3 This path contains the vboot_reference-sys crate which uses bindgen to generate
4 Rust bindings for the vboot_reference C library.
5
6 Each 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]
10 vboot_reference-sys = { path = "../../vboot_reference/rust/vboot_reference-sys" }
11 ```
12 * Include the symbols you need for example:
13 ```rust
14 use vboot_reference_sys::crossystem::*;
15 ```
16
17 The `build.rs` in `vboot_reference-sys` takes care of adding the necessary
18 includes and linker flags for `vboot_host` through the `pkg-config` crate.