#libc #openbsd #wasm32-unknown-unknown #parts #sense #subset

sys wasm32-unknown-unknown-openbsd-libc

The parts of OpenBSD libc that make sense on wasm32-unknown-unknown

2 unstable releases

0.2.0 Jan 28, 2024
0.1.0 Jan 9, 2024

#6 in #wasm32-unknown-unknown

Download history 1/week @ 2024-09-13 7/week @ 2024-09-20 4/week @ 2024-09-27 1/week @ 2024-10-04 30/week @ 2024-11-22 68/week @ 2024-11-29 39/week @ 2024-12-06 42/week @ 2024-12-13

179 downloads per month

BSD-3-Clause AND ISC AND MIT

400KB
5.5K SLoC

C 5K SLoC // 0.5% comments Rust 82 SLoC // 0.1% comments Bitbake 47 SLoC // 0.2% comments

wasm32-unknown-unknown-openbsd-libc

A small chunk of OpenBSD's libc, conveniently packaged as a Rust crate.

Created for compiling C code that relies on a reasonable subset of libc to wasm32-unknown-unknown.

[target.wasm32-unknown-unknown.dependencies]
wasm32-unknown-unknown-openbsd-libc = "0.2"

In your build.rs using cc:

cfg.include(std::env::var_os("DEP_WASM32_UNKNOWN_UNKNOWN_OPENBSD_LIBC_INCLUDE").unwrap());

println!("cargo:rustc-link-lib=wasm32-unknown-unknown-openbsd-libc");

Dependencies