This repository was archived by the owner on Apr 8, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
bindings/rust/evmc-loader Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ edition = "2018"
1313
1414[build-dependencies ]
1515bindgen = " 0.59"
16- cmake = " 0.1"
16+ cmake = " 0.1"
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ fn main() {
2727 . rustified_enum ( "*" )
2828 . allowlist_type ( "evmc_.*" )
2929 . allowlist_function ( "evmc_.*" )
30+ . blocklist_type ( "evmc_vm" )
3031 // TODO: consider removing this
3132 . size_t_is_usize ( true )
3233 . generate ( )
Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ pub fn load_and_configure(
2828
2929#[ cfg( test) ]
3030mod tests {
31- use std:: ffi:: CString ;
32- use std:: os:: raw:: c_char;
33-
3431 use super :: * ;
3532
3633 #[ test]
Original file line number Diff line number Diff line change 88
99include ! ( concat!( env!( "OUT_DIR" ) , "/bindings.rs" ) ) ;
1010
11+ // Defining evmc_vm here, because bindgen cannot create a useful declaration yet.
12+
13+ pub type evmc_vm = :: std:: os:: raw:: c_void ;
14+
1115#[ cfg( test) ]
1216mod tests {
1317 use std:: ffi:: CString ;
@@ -21,7 +25,7 @@ mod tests {
2125 unsafe {
2226 let mut error_code = evmc_loader_error_code:: EVMC_LOADER_UNSPECIFIED_ERROR ;
2327 let instance = evmc_load_and_create ( c_str. as_ptr ( ) as * const c_char , & mut error_code) ;
24- println ! ( "{:?}" , error_code) ;
28+ println ! ( "{:?} {:?} " , error_code, instance ) ;
2529 }
2630 }
2731}
You can’t perform that action at this time.
0 commit comments