rust-lang / rust-lang/rust

some "Unix" targets don't support most Unix idioms

Open
#141,838 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-cfg C-bug O-unix T-compiler T-libs
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

This is a persistent issue with target_family = "unix" being defined by targets that happen to have a somewhat Unix-like compiling-for-them experience but do not have a Unix runtime. This causes considerable amounts of working around them in configuration code for libraries, since you cannot simply treat them as Unix.

Some examples:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the examples in Bevy PR #19453, rust-lang/rust issue #58590, and issue #140042 to understand which targets are affected by target_family = "unix". A complete solution would define and implement a way to distinguish Unix-like compilation targets from targets with a Unix runtime, with configuration users able to rely on that distinction.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.