wasix-org / wasix-libc

wasix libc implementation for WebAssembly
https://wasi.dev
Other
111 stars 19 forks source link

Is this API-compatible with `nix`? #37

Open ris-work opened 5 months ago

ris-work commented 5 months ago

As you are most probably already aware, there is also a library called nix which provides bindings to libc calls but with better type information. It is a very popular library and one of my projects transitively depend on it because webrtc-rs depends on nix. Is this API-compatible with nix? Are there any WASIX-friendly alternatives or ports of nix?

Thank you.

ris-work commented 5 months ago

Oh, sorry, nevermind, this is not a rust library. Are there any plans for nix-like bindings?

theduke commented 5 months ago

We do also have Rust libc bindings for WASIX, which are located here: https://github.com/wasix-org/libc .

There isn't anything like nix though. Also of note is that WASIX is currently built on top of WASI v1, which looks quite diferent from the regular Linux ABI, so a largely compatible mapping would be a big challenge.