Skip to content

Fails to compile on win32 #33

@ctron

Description

@ctron

Trying to compile, with defaults enabled, fails on windows:

Having:

xattr = "1"

Results in:

error[E0433]: failed to resolve: could not find `unix` in `os`
 --> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\xattr-1.0.0\src\util.rs:4:14
  |
4 | use std::os::unix::ffi::OsStrExt;
  |              ^^^^ could not find `unix` in `os`

error[E0433]: failed to resolve: could not find `unix` in `os`
  --> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\xattr-1.0.0\src\lib.rs:36:14
   |
36 | use std::os::unix::io::AsRawFd;
   |              ^^^^ could not find `unix` in `os`

error[E0433]: failed to resolve: could not find `unix` in `os`
 --> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\xattr-1.0.0\src\sys\unsupported.rs:3:14
  |
3 | use std::os::unix::io::RawFd;
  |              ^^^^ could not find `unix` in `os`

error[E0432]: unresolved import `UnsupportedPlatformError`
 --> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\xattr-1.0.0\src\sys\unsupported.rs:6:5
  |
6 | use UnsupportedPlatformError;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^ no external crate `UnsupportedPlatformError`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `xattr` due to 4 previous errors
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions