7 releases
Uses old Rust 2015
0.3.1 | Dec 9, 2016 |
---|---|
0.3.0 | Nov 3, 2016 |
0.2.4 | Oct 22, 2016 |
0.2.0 | Jul 21, 2016 |
#125 in #bindings-generator
8KB
115 lines
crustacean-plugin
crustacean!(<header>, + [, { <option>, + }]);
Options
See here for information on how options are used and their default values.
Name | Type |
---|---|
ALLOW_UNSUPPORTED_TYPES |
bool |
DERIVE_ENUM |
[&str] |
DERIVE_STRUCT |
[&str] |
DISPLAY_DIAGNOSTICS |
bool |
FILTER |
"none" | "system" | "non-main" |
IGNORE_ENUM_VARIANTS |
[(&str, [&str])] |
NESTED_MOD |
&str |
PRIMITIVE |
[&str] |
Examples
Minimal
crustacean!("tests/headers/typedefs.h");
Arguments
crustacean!("tests/headers/typedefs.h": ["-std=c99"]);
Options
crustacean!("tests/headers/typedefs.h", { ALLOW_UNSUPPORTED_TYPES: true });
Maximal
crustacean!("tests/headers/enums.h": ["--std=c99"], {
ALLOW_UNSUPPORTED_TYPES: true,
DERIVE_ENUM: ["Debug"],
DERIVE_STRUCT: ["Debug"],
DISPLAY_DIAGNOSTICS: true,
FILTER: "non-main",
IGNORE_ENUM_VARIANTS: [("B", ["BFirst", "BLast"])],
NESTED_MOD: "inner",
PRIMITIVE: ["std", "os", "raw"],
});
Dependencies
~210KB