nix-rust / nix

Rust friendly bindings to *nix APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unresolved import `nix::fcntl` in WASI

antoniomuso opened this issue · comments

I get the following error:

error[E0432]: unresolved import `nix::fcntl`
 --> src/lib.rs:7:10
  |
7 | use nix::fcntl::{flock, FlockArg};
  |          ^^^^^ could not find `fcntl` in `nix`

When I try to compile with cargo build --target wasm32-wasi

We don't target that platform. Would you care to submit a PR to add support?

When I find time, I will be happy to do it.