Skip to content

Commit

Permalink
Merge pull request #638 from ethereum/rust-bindgen
Browse files Browse the repository at this point in the history
rust: Update bindgen to 0.59
  • Loading branch information
axic committed May 6, 2022
2 parents 216b6f6 + 02762b4 commit a1d2845
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Please visit the [documentation].
| **C** | C99, C11 | GCC 7+, clang 5+, MSVC 2017+ | Host- and VM-side |
| **C++** | C++17 | GCC 7+, clang 5+, MSVC 2017+ | Host- and VM-side |
| **Go** _(bindings)_ | 1.11+ (with modules) | | Host-side only |
| **Rust** _(bindings)_[¹](#n1) | 2018 edition | 1.37.0 and newer | VM-side only |
| **Rust** _(bindings)_[¹](#n1) | 2018 edition | 1.47.0 and newer | VM-side only |
| **Java** _(bindings)_[²](#n2) | 11 | | Host-side only |

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.
Expand Down
2 changes: 1 addition & 1 deletion bindings/rust/evmc-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ categories = ["external-ffi-bindings"]
edition = "2018"

[build-dependencies]
bindgen = "0.54.0"
bindgen = "0.59"
6 changes: 3 additions & 3 deletions bindings/rust/evmc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ fn gen_bindings() {
// force deriving the PratialEq trait on basic types (address, bytes32)
.derive_partialeq(true)
.opaque_type("evmc_host_context")
.whitelist_type("evmc_.*")
.whitelist_function("evmc_.*")
.whitelist_var("EVMC_ABI_VERSION")
.allowlist_type("evmc_.*")
.allowlist_function("evmc_.*")
.allowlist_var("EVMC_ABI_VERSION")
// TODO: consider removing this
.size_t_is_usize(true)
.generate()
Expand Down

0 comments on commit a1d2845

Please sign in to comment.