Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit a1d2845

Browse files
authored
Merge pull request #638 from ethereum/rust-bindgen
rust: Update bindgen to 0.59
2 parents 216b6f6 + 02762b4 commit a1d2845

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Please visit the [documentation].
2424
| **C** | C99, C11 | GCC 7+, clang 5+, MSVC 2017+ | Host- and VM-side |
2525
| **C++** | C++17 | GCC 7+, clang 5+, MSVC 2017+ | Host- and VM-side |
2626
| **Go** _(bindings)_ | 1.11+ (with modules) | | Host-side only |
27-
| **Rust** _(bindings)_[¹](#n1) | 2018 edition | 1.37.0 and newer | VM-side only |
27+
| **Rust** _(bindings)_[¹](#n1) | 2018 edition | 1.47.0 and newer | VM-side only |
2828
| **Java** _(bindings)_[²](#n2) | 11 | | Host-side only |
2929

3030
1. <sup id="n1">↑</sup> Rust support is limited and not complete yet, but it is mostly functional already. Breaking changes are possible at this stage.

bindings/rust/evmc-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ categories = ["external-ffi-bindings"]
1313
edition = "2018"
1414

1515
[build-dependencies]
16-
bindgen = "0.54.0"
16+
bindgen = "0.59"

bindings/rust/evmc-sys/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ fn gen_bindings() {
2020
// force deriving the PratialEq trait on basic types (address, bytes32)
2121
.derive_partialeq(true)
2222
.opaque_type("evmc_host_context")
23-
.whitelist_type("evmc_.*")
24-
.whitelist_function("evmc_.*")
25-
.whitelist_var("EVMC_ABI_VERSION")
23+
.allowlist_type("evmc_.*")
24+
.allowlist_function("evmc_.*")
25+
.allowlist_var("EVMC_ABI_VERSION")
2626
// TODO: consider removing this
2727
.size_t_is_usize(true)
2828
.generate()

0 commit comments

Comments
 (0)