From 2694347116c15256fc4e389c161dd76262f97cee Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 13 Mar 2019 20:31:41 +0100 Subject: [PATCH] Always generate Rust enums --- bindings/rust/evmc-sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/rust/evmc-sys/build.rs b/bindings/rust/evmc-sys/build.rs index 3591589..1611643 100644 --- a/bindings/rust/evmc-sys/build.rs +++ b/bindings/rust/evmc-sys/build.rs @@ -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");