Skip to content

Conversation

@wezm
Copy link
Contributor

@wezm wezm commented Jan 24, 2026

On my loongarch64 Linux system tiny fails to build with this error originating in nix:

error[E0432]: unresolved import `self::consts`
  --> /home/wmoore/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.26.4/src/sys/ioctl/linux.rs:60:15
   |
60 | pub use self::consts::*;
   |               ^^^^^^ could not find `consts` in `self`

This PR bumps nix used by term_input to the next version, which resolves the issue. There are much newer versions of nix but I decided to be conservative in the bump.

The fs feature needs to be added to nix as the fcntl stuff was put behind that cargo feature:

error[E0432]: unresolved imports `nix::fcntl::FcntlArg`, `nix::fcntl::OFlag`, `nix::fcntl::fcntl`
   --> crates/term_input/src/lib.rs:20:18
    |
 20 | use nix::fcntl::{FcntlArg, OFlag, fcntl};
    |                  ^^^^^^^^  ^^^^^  ^^^^^ no `fcntl` in `fcntl`
    |                  |         |
    |                  |         no `OFlag` in `fcntl`
    |                  no `FcntlArg` in `fcntl`
    |
note: found an item that was configured out
   --> /home/wmoore/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.27.1/src/fcntl.rs:458:10
    |
453 | #![feature = "fs"]
    |    -------------- the item is gated behind the `fs` feature

Resolves this error:

error[E0432]: unresolved import `self::consts`
  --> /home/wmoore/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.26.4/src/sys/ioctl/linux.rs:60:15
   |
60 | pub use self::consts::*;
   |               ^^^^^^ could not find `consts` in `self`
@osa1 osa1 merged commit 7dcfb78 into osa1:master Jan 24, 2026
7 checks passed
@osa1
Copy link
Owner

osa1 commented Jan 24, 2026

Thanks!

@wezm wezm deleted the loongarch branch January 24, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants