You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current text was a little bit of a mess and had some subtle
inaccuracies. This reworks so that the intro follows the template, and
just generally introduces the attribute.
`allowed-positions` now just specifies the allowed positions.
I reworked the behavior changes caused by no_std into proper separate
rules.
`std` is not injected into the crate root anymore starting with edition
2018.
The `no_std` attributechangesthe [standardlibraryprelude] touse the `core` prelude instead of `std`.
111
106
107
+
r[names.preludes.extern.no_std.inject]
108
+
By default, the [`std`] crate is injected into the [extern prelude], and all macros exported from `std` are added to the [`macro_use` prelude].
112
109
110
+
If the `no_std` attribute is specified, then the [`core`] crate is used instead of `std`, and similarly all macros exported from `core` are placed into the [`macro_use` prelude].
0 commit comments