| Crates.io | po6 |
| lib.rs | po6 |
| version | 0.1.7 |
| created_at | 2023-09-04 01:39:24.058171+00 |
| updated_at | 2023-09-11 01:55:03.086093+00 |
| description | A C POSIX library in Rust |
| homepage | |
| repository | |
| max_upload_size | |
| id | 962549 |
| size | 31,206 |
po6A 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.
build-dependencies:
$ cargo add po6 --build
build.rs by adding the output of po6::build to your include paths:
cc::Build::new()
.includes(po6::build()?)
lib.rs by including the generated runtime file:
mod po6 {
include!(concat!(env!("OUT_DIR"), "/po6.rs"));
}