Added [defines] to sample ‘cbindgen.toml’ file in ‘README.md’

This commit is contained in:
Vincent Esche 2018-08-08 20:44:02 +02:00 committed by Ryan Hunt
parent 8b4a271714
commit 6df2fcb316

View File

@ -90,6 +90,11 @@ language = "[C|C++]"
# A rule to use to select style of declaration in C, tagname vs typedef
style = "[Both|Type|Tag]"
[defines]
# A rule for generating `#ifdef`s for matching `#[cfg]`ed items,
# e.g. `#[cfg(foo = "bar")] ...` -> `#if defined(FOO_IS_BAR) ... #endif`
"foo = bar" = "FOO_IS_BAR"
[parse]
# Whether to parse dependent crates and include their types in the generated
# bindings