Without this change cargo install putioarr failed with the following errors:
error[E0432]: unresolved import `nix::unistd::Uid`
--> src/download_system/download.rs:10:5
|
10 | use nix::unistd::Uid;
| ^^^^^^^^^^^^^^^^ no `Uid` in `unistd`
|
note: found an item that was configured out
--> /Users/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/unistd.rs:74:12
|
74 | pub struct Uid(uid_t);
| ^^^
= note: the item is gated behind the `user` feature
error[E0425]: cannot find function `isatty` in module `nix::unistd`
--> src/main.rs:103:52
|
103 | } else if let Ok(istty) = nix::unistd::isatty(0) {
| ^^^^^^ not found in `nix::unistd`
|
note: found an item that was configured out
--> /Users/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/unistd.rs:1264:8
|
1264 | pub fn isatty(fd: RawFd) -> Result<bool> {
| ^^^^^^
= note: the item is gated behind the `fs` feature
Without this change
cargo install putioarr
failed with the following errors: