Skip to content

does not install on macOS #1

@jvo203

Description

@jvo203

cargo install cpx:

 Compiling cpx v0.1.2
error[E0432]: unresolved import `nix::fcntl::copy_file_range`
    --> /Users/chris/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cpx-0.1.2/src/core/fast_copy.rs:4:5
     |
   4 | use nix::fcntl::copy_file_range;
     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `copy_file_range` in `fcntl`
     |
note: found an item that was configured out
    --> /Users/chris/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/fcntl.rs:1215:8
     |
1214 | #[cfg(any(linux_android, target_os = "freebsd"))]
     |          -------------------------------------- the item is gated here
1215 | pub fn copy_file_range<Fd1: std::os::fd::AsFd, Fd2: std::os::fd::AsFd>(
     |        ^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0432`.
error: could not compile `cpx` (lib) due to 1 previous error
error: failed to compile `cpx v0.1.2`, intermediate artifacts can be found at `/var/folders/8r/35xdcb5j3p797dckssz62d_80000gn/T/cargo-installfCtkf1`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions