wouterdebie / putioarr

put.io to sonarr/radarr proxy
MIT License
23 stars 3 forks source link

Declare fs and user features for nix dependency #10

Closed arrizer closed 4 months ago

arrizer commented 4 months ago

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
wouterdebie commented 4 months ago

Thanks for this guys! I just pushed a new version (0.5.19) that contains this change and some other dependencies bumped.