#binding #binaryen

sys binaryen_capi-sys

Rust Raw Bindings for binaryen

2 unstable releases

116.0.0 Feb 14, 2024
0.117.0 Mar 9, 2024
0.116.1 Feb 17, 2024

#579 in WebAssembly

45 downloads per month

Apache-2.0

30KB
141 lines

Rust Raw Bindings for Binaryen C API

Crates.io Version docs.rs

Requestments

  • Installed Binaryen (If it is nothing, this library will build binaryen. but need very long time(about 4m30s))
  • clang (for genetate binaryen)
  • libstdc++

When searching for the binaryen path, this library calculates backwards from the wasm-opt path. Be sure to set binaryen in the Path environment variable. It can also be specified by setting the BINARYEN_PATH environment variable.

Path Example

/BINARYEN_PATH  
 |- lib  
    |- libbinaryen.a[.so]  
 |- include  
    |- binaryen-c.h  
    |- wasm-delegations.def  

lib.rs:

Rust Raw Bindings for Binaryen C API

Requestments

  • Installed Binaryen (If it is nothing, this library will build binaryen. but need very long time(about 4m30s))
  • clang (for genetate binaryen)
  • libstdc++

When searching for the binaryen path, this library calculates backwards from the wasm-opt path. Be sure to set binaryen in the Path environment variable. It can also be specified by setting the BINARYEN_PATH environment variable.

Path Example

/BINARYEN_PATH  
 |- lib  
    |- libbinaryen.a[.so]  
 |- include  
    |- binaryen-c.h  
    |- wasm-delegations.def  

No runtime deps

~0–1.8MB
~36K SLoC