Merge pull request #205 from ethereum/rust-enums

Always generate Rust enums
This commit is contained in:
Alex Beregszaszi 2019-03-13 20:37:20 +01:00 committed by GitHub
commit 2e69b5a204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ fn gen_bindings() {
.generate_comments(true)
// https://github.com/rust-lang-nursery/rust-bindgen/issues/947#issuecomment-327100002
.layout_tests(false)
// do not generate an empty enum for EVMC_ABI_VERSION
.constified_enum("")
// generate Rust enums for each evmc enum
.rustified_enum("*")
.generate()
.expect("Unable to generate bindings");