Skip to content

uucore: doesn't build with --no-default-features #15339

Description

@abendrothj

cargo check -p uucore --no-default-features fails with ten errors on Linux: src/uucore/src/lib/lib.rs, mods/error.rs and mods/panic.rs use nix, which is only enabled by the default signals feature. Adding other features doesn't help, e.g. --no-default-features --features selinux,fs still fails the same way, so uucore can't be used without signals.

Activity

  1. a7604 commented on Oct 14, 2026

    @a7604
    Contributor

    was nix kept optional on purpose if not we could make it a non-optional unix dependency with the signal feature enabled so uucore builds with or without signals happy to open a PR for that if it sounds good

  2. added a commit that references this issue on Oct 15, 2026
    ccb86ea
  3. xtqqczze commented on Oct 15, 2026

    @xtqqczze
    Collaborator

    An issue is that #15067 added an implicit nix dependency without declaring it. #15372 will resolve that but will not fully resolve this issue.

  4. xtqqczze commented on Oct 15, 2026

    @xtqqczze
    Collaborator

    was nix kept optional on purpose

    yes it was made optional because nix fails to compile on some uncommon targets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions