Skip to content

Commit eafc6b2

Browse files
committed
reference object form of build-std from prev rfc
1 parent 5b41f45 commit eafc6b2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

text/3875-build-std-explicit-dependencies.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Allow users to add explicit dependencies on standard library crates in the
1010
`Cargo.toml`. This enables Cargo to determine which standard library crates are
11-
required by the crate graph without `build-std-crates` being set and for
11+
required by the crate graph without `build-std.crates` being set and for
1212
different crates to require different standard library crates.
1313

1414
**This RFC is is part of the [build-std project goal] and a series of build-std
@@ -706,7 +706,7 @@ required:
706706
707707
- Cargo could allow the user to specify which crates are required to be built,
708708
such as with the existing options to the `-Zbuild-std=` flag.
709-
[`build-std=always`][rfcs#3874-proposal] proposes a `build-std-crates` flag to
709+
[`build-std=always`][rfcs#3874-proposal] proposes a `build-std.crates` flag to
710710
enable explicit dependencies to be a separate part of this RFC.
711711
712712
Furthermore, supporting explicit dependencies on standard library crates enables
@@ -810,7 +810,7 @@ Supporting implicit dependencies allows the majority of the Rust ecosystem from
810810
having to make any changes - `no_std` crates (or crates with a `std` feature)
811811
will still benefit from adding explicit dependencies as allow them to be easily
812812
used with `no_std` targets but users can still work around any legacy crates in
813-
the graph with [`build-std-crates`][rfcs#3874-proposal].
813+
the graph with [`build-std.crates`][rfcs#3874-proposal].
814814
815815
↩ [*Proposal*][proposal]
816816
@@ -1046,12 +1046,13 @@ There are many possible follow-ups to this part of the RFC:
10461046
[future-replace-no_std]: #replace-no_std-as-the-source-of-truth-for-whether-a-crate-depends-on-std
10471047
10481048
Crates can currently use the crate attribute `#![no_std]` to indicate a lack of
1049-
dependency on `std`. Introducing `build-std-crates` from [RFC #3874][rfcs#3874]
1049+
dependency on `std`. Introducing `build-std.crates` from [RFC #3874][rfcs#3874]
10501050
or explicit dependencies would add a second way for the user to indicate a lack
10511051
of dependency on the standard library. It could therefore be desirable to
10521052
deprecate `#![no_std]` so that there remains only a single way to express a
10531053
dependency on the standard library.
10541054
1055+
10551056
`#![no_std]` serves two purposes - it stops the compiler from adding `std` to
10561057
the extern prelude and it prevents the user from depending on anything from
10571058
`std` accidentally. rustc's default behaviour of loading `std` when not

0 commit comments

Comments
 (0)