Skip to content

Build dependency awareness #1251

@alexcrichton

Description

@alexcrichton

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-build-scriptsArea: build.rs scriptsA-documenting-cargo-itselfArea: Cargo's documentationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions