1//! The core prelude
2//!
3//! This module is intended for users of core which do not link to std as well.
4//! This module is imported by default when `#![no_std]` is used in the same
5//! manner as the standard library's prelude.
6
7#![stable(feature = "core_prelude", since = "1.4.0")]
8
9pub mod v1;
10
11/// The 2015 version of the core prelude.
12///
13/// See the [module-level documentation](self) for more.
14#[stable(feature = "prelude_2015", since = "1.55.0")]
15pub mod rust_2015 {
16 #[stable(feature = "prelude_2015", since = "1.55.0")]
17 #[doc(no_inline)]
18 pub use super::v1::*;
19}
20
21/// The 2018 version of the core prelude.
22///
23/// See the [module-level documentation](self) for more.
24#[stable(feature = "prelude_2018", since = "1.55.0")]
25pub mod rust_2018 {
26 #[stable(feature = "prelude_2018", since = "1.55.0")]
27 #[doc(no_inline)]
28 pub use super::v1::*;
29}
30
31/// The 2021 version of the core prelude.
32///
33/// See the [module-level documentation](self) for more.
34#[stable(feature = "prelude_2021", since = "1.55.0")]
35pub mod rust_2021 {
36 #[stable(feature = "prelude_2021", since = "1.55.0")]
37 #[doc(no_inline)]
38 pub use super::v1::*;
39
40 #[stable(feature = "prelude_2021", since = "1.55.0")]
41 #[doc(no_inline)]
42 pub use crate::iter::FromIterator;
43
44 #[stable(feature = "prelude_2021", since = "1.55.0")]
45 #[doc(no_inline)]
46 pub use crate::convert::{TryFrom, TryInto};
47}
48
49/// The 2024 edition of the core prelude.
50///
51/// See the [module-level documentation](self) for more.
52#[unstable(feature = "prelude_2024", issue = "none")]
53pub mod rust_2024 {
54 #[unstable(feature = "prelude_2024", issue = "none")]
55 #[doc(no_inline)]
56 pub use super::rust_2021::*;
57}
58