po6
A C POSIX library in Rust meant for building C libraries in environments
without one (eg. wasm32-unknown-unknown or Windows).
po6 allows you to create "isomorphic" Rust crates for C libraries: these
will work in any platform where the Rust standard library runs, allowings APIs
such as pthread to work on Windows or wasm-bindgen.
Makes it possible to build C libraries with wasm-bindgen.
Usage
- Install it to your
build-dependencies:$ cargo add po6 --build - Use it in your
build.rsby adding the output ofpo6::buildto your include paths:new .includes - Use it in your
lib.rsby including the generated runtime file: