Skip to content

Commit be70a36

Browse files
committed
elaborate on trade-off for noprelude of explicit builtin deps
1 parent 74bc861 commit be70a36

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

text/0000-build-std/5-standard-library-dependencies.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,12 @@ hardcode the names of many crates in the sysroot which are inherently unstable.
691691
Explicit builtin dependencies without the `noprelude` modifier behave more
692692
consistently with other dependencies specified in the Cargo manifest.
693693
694-
This is a trade-off, as the behaviour will be subtly different than with
695-
implicit builtin dependencies (where `extern crate` is required).
694+
This is a trade-off, trading consistency of user experience with special-casing
695+
in Cargo. Cargo would have to handle implicit vs explicit dependencies
696+
differently. An explicit dependency on the standard library will behave
697+
similarly to other dependencies in their manifest, but the behaviour will be
698+
subtly different than with implicit builtin dependencies (where `extern crate`
699+
is required).
696700
697701
↩ [*Proposal*][proposal]
698702

0 commit comments

Comments
 (0)