-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-build-scriptsArea: build.rs scriptsArea: build.rs scriptsA-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Description
As issues like #1240 and #888 talk about, build scripts are not exactly trivial to write right now. We've got a fantastic system for making them easier to write via build-dependencies
, but there's no current great way to discover build dependencies.
I think that we need a better strategy for promoting build dependencies, raising awareness about them, and generally discouraging "please install these 4 libs" sections of READMEs in favor of having scripts themselves take care of the necessities.
Some possible ideas:
- Add an "official"
build-dependency
keyword on crates.io - Add a curated list of known build dependencies that are good for use.
- Expand documentation about build dependencies and how best to utilize them
- Have a list of "wanted build dependencies" for functionality that should be in a separate crate but currently isn't
I do think that some work is going to be need to put into writing some new build dependencies as I have a feeling we're still lacking some basic utilities. It's good track some of this though!
kornelski
Metadata
Metadata
Assignees
Labels
A-build-scriptsArea: build.rs scriptsArea: build.rs scriptsA-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`