https://github.com/trevyn/wasm32-unknown-unknown-openbsd-libc
The parts of OpenBSD libc that make sense on wasm32-unknown-unknown.
https://github.com/trevyn/wasm32-unknown-unknown-openbsd-libc
libc wasm32-unknown-unknown
Last synced: 6 months ago
JSON representation
The parts of OpenBSD libc that make sense on wasm32-unknown-unknown.
- Host: GitHub
- URL: https://github.com/trevyn/wasm32-unknown-unknown-openbsd-libc
- Owner: trevyn
- Created: 2024-01-09T10:57:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T11:59:35.000Z (over 1 year ago)
- Last Synced: 2025-08-31T04:41:32.660Z (10 months ago)
- Topics: libc, wasm32-unknown-unknown
- Language: Rust
- Homepage: https://crates.io/crates/wasm32-unknown-unknown-openbsd-libc
- Size: 12.7 KB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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`.
```toml
[target.wasm32-unknown-unknown.dependencies]
wasm32-unknown-unknown-openbsd-libc = "0.2"
```
In your `build.rs` using `cc`:
```rust
cfg.include(std::env::var_os("DEP_WASM32_UNKNOWN_UNKNOWN_OPENBSD_LIBC_INCLUDE").unwrap());
println!("cargo:rustc-link-lib=wasm32-unknown-unknown-openbsd-libc");
```