build-std: explicit dependencies#3875
Conversation
|
@rfcbot fcp resolve redundant-no-std |
|
@rfcbot reviewed |
| ### Registries | ||
| [registries]: #registries | ||
|
|
||
| Standard library dependencies will be present in the registry index such that |
There was a problem hiding this comment.
Do we need to consider what happens when a crate with builtin deps is uploaded to an existing 3rd party registry without explicit support for it?
There was a problem hiding this comment.
I'm not sure that this is any different than any other change or evolution of the registry index format such that it needs addressed specifically in this RFC. As I understand it, the format has been evolved in the past so could be again and there are means for doing so?
|
|
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
View all comments
Allow users to add explicit dependencies on standard library crates in the
Cargo.toml. This enables Cargo to determine which standard library crates are required by the crate graph withoutbuild-std-cratesbeing set and for different crates to require different standard library crates.This RFC is is part of the build-std project goal and a series of build-std RFCs:
build-std="always"(build-std: always #3874)build-std="compatible"(RFC not opened yet)build-std="match-profile"(RFC not opened yet)There is also a Zulip channel where you can ask questions about any of the build-std RFCs. This series of RFCs was drafted over many months with the help of stakeholders from many Rust project teams, we thank them for their help!
There are some details that have been noted as being worth mentioning in any eventual tracking issues:
FCP
Rendered