Update README.md to reference cbindgen::generate()

Fixes issue #218
This commit is contained in:
Ryan Hunt 2018-10-16 16:04:00 -05:00
parent 43f6f7108e
commit a4f4d0bf95

View File

@ -27,6 +27,7 @@ cargo install cbindgen
```
or
```
# This will update cbindgen if it's already installed
cargo install --force cbindgen
```
@ -62,6 +63,10 @@ fn main() {
```
You can add configuration options using the [`Builder`](https://docs.rs/cbindgen/*/cbindgen/struct.Builder.html#methods) interface.
If you'd like to use a `build.rs` script with a `cbindgen.toml`, consider using [`cbindgen::generate()`](https://docs.rs/cbindgen/*/cbindgen/fn.generate.html) instead.
## Configuration
There are some options that can be used to configure the binding generation.