Enable build-std on a per target basis
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 15.5k
- Forks
- 3k
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 51
Description
Some of my custom targets require me to enable build-std, which currently I can enable through .cargo/config.toml
[unstable]
build-std = ["core"]
but this means it is enabled for every target. However I don't necessarily want it for build in targets, it would be nice if in my .cargo/config.toml I could specify something like
[target.custom-target.unstable]
build-std = ["core"]
If this is already possible but with a different syntax consider this issue closed
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 by examining Cargo's handling of .cargo/config.toml, especially the global [unstable] build-std setting and target-specific configuration. Define how a target-specific build-std value should interact with the global setting, then verify that custom targets can opt in without enabling it for every target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100