1.0: Remove all instances of `link(name = ...)` and delete the `std` feature
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.6k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 69
Description
Currently, libc expects std to provide all link directives necessary. If the std feature is disabled, instead libc emits link attributes: https://github.com/rust-lang/libc/blob/f24764dc460a26c90b2d967fcffb7b341f8393f3/src/unix/mod.rs#L439-L624
We discussed at rustweek 2025 that we should remove this and expect users to add their own link attributes when building in no-std environments. This way you can still use the bindings even if some of the libraries aren't available.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/unix/mod.rs, especially the link attributes around the section linked in the issue, and search the repository for link(name = ...) and the std feature. Done means those link directives and the std feature are removed while no-std users can still use the bindings without libc emitting them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100