From 544fece3a90dc1875d1e79f35fd9226779ce9b3b Mon Sep 17 00:00:00 2001 From: Yulong Wu Date: Sat, 2 Mar 2024 12:03:57 +0000 Subject: [PATCH] Fix rust bindings generation --- bindings/rust/evmc-sys/Cargo.toml | 2 +- bindings/rust/evmc-sys/build.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/rust/evmc-sys/Cargo.toml b/bindings/rust/evmc-sys/Cargo.toml index e100bb514..a7cf9b5fd 100644 --- a/bindings/rust/evmc-sys/Cargo.toml +++ b/bindings/rust/evmc-sys/Cargo.toml @@ -13,4 +13,4 @@ categories = ["external-ffi-bindings"] edition = "2018" [build-dependencies] -bindgen = "0.59" +bindgen = "0.69.4" diff --git a/bindings/rust/evmc-sys/build.rs b/bindings/rust/evmc-sys/build.rs index 43cd22fe7..d3752fa97 100644 --- a/bindings/rust/evmc-sys/build.rs +++ b/bindings/rust/evmc-sys/build.rs @@ -14,7 +14,7 @@ fn gen_bindings() { // do not generate an empty enum for EVMC_ABI_VERSION .constified_enum("") // generate Rust enums for each evmc enum - .rustified_enum("*") + .rustified_enum(".*") // force deriving the Hash trait on basic types (address, bytes32) .derive_hash(true) // force deriving the PratialEq trait on basic types (address, bytes32)