Skip to content

Cannot compile to wasm32-wasi #195

@Cyborus04

Description

@Cyborus04

I was trying to make a crate for getting cap_std::fs::Dirs from wasi's preopened dirs, but hit a bit of a roadblock
It seems even when compiling to wasi, cap-primitives still tries to access std::os::unix

error[E0433]: failed to resolve: could not find `unix` in `os`
  --> cap-primitives\src\rsix\fs\copy_impl.rs:34:18
   |
34 |     use std::os::unix::fs::PermissionsExt;
   |                  ^^^^ could not find `unix` in `os`

+16 other errors

(on nightly)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions