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.
67// No formatting: this file is nothing but re-exports, and their order is worth preserving.
8#![cfg_attr(rustfmt, rustfmt::skip)]
910#![stable(feature = "core_prelude", since = "1.4.0")]
1112pub mod v1;
1314/// The 2015 version of the core prelude.
15///
16/// See the [module-level documentation](self) for more.
17#[stable(feature = "prelude_2015", since = "1.55.0")]
18pub mod rust_2015 {
19#[stable(feature = "prelude_2015", since = "1.55.0")]
20 #[doc(no_inline)]
21pub use super::v1::*;
22}
2324/// The 2018 version of the core prelude.
25///
26/// See the [module-level documentation](self) for more.
27#[stable(feature = "prelude_2018", since = "1.55.0")]
28pub mod rust_2018 {
29#[stable(feature = "prelude_2018", since = "1.55.0")]
30 #[doc(no_inline)]
31pub use super::v1::*;
32}
3334/// The 2021 version of the core prelude.
35///
36/// See the [module-level documentation](self) for more.
37#[stable(feature = "prelude_2021", since = "1.55.0")]
38pub mod rust_2021 {
39#[stable(feature = "prelude_2021", since = "1.55.0")]
40 #[doc(no_inline)]
41pub use super::v1::*;
4243#[stable(feature = "prelude_2021", since = "1.55.0")]
44 #[doc(no_inline)]
45 #[cfg(not(feature = "ferrocene_certified"))]
46pub use crate::iter::FromIterator;
4748#[stable(feature = "prelude_2021", since = "1.55.0")]
49 #[doc(no_inline)]
50 #[cfg(not(feature = "ferrocene_certified"))]
51pub use crate::convert::{TryFrom, TryInto};
52}
5354/// The 2024 version of the core prelude.
55///
56/// See the [module-level documentation](self) for more.
57#[stable(feature = "prelude_2024", since = "1.85.0")]
58pub mod rust_2024 {
59#[stable(feature = "rust1", since = "1.0.0")]
60 #[doc(no_inline)]
61pub use super::v1::*;
6263#[stable(feature = "prelude_2021", since = "1.55.0")]
64 #[doc(no_inline)]
65 #[cfg(not(feature = "ferrocene_certified"))]
66pub use crate::iter::FromIterator;
6768#[stable(feature = "prelude_2021", since = "1.55.0")]
69 #[doc(no_inline)]
70 #[cfg(not(feature = "ferrocene_certified"))]
71pub use crate::convert::{TryFrom, TryInto};
7273#[stable(feature = "prelude_2024", since = "1.85.0")]
74 #[doc(no_inline)]
75 #[cfg(not(feature = "ferrocene_certified"))]
76pub use crate::future::{Future, IntoFuture};
77}
7879/// The Future version of the core prelude.
80///
81/// See the [module-level documentation](self) for more.
82#[doc(hidden)]
83#[unstable(feature = "prelude_future", issue = "none")]
84#[cfg(not(feature = "ferrocene_certified"))]
85pub mod rust_future {
86#[stable(feature = "rust1", since = "1.0.0")]
87 #[doc(no_inline)]
88pub use super::v1::*;
8990#[stable(feature = "prelude_2021", since = "1.55.0")]
91 #[doc(no_inline)]
92pub use crate::iter::FromIterator;
9394#[stable(feature = "prelude_2021", since = "1.55.0")]
95 #[doc(no_inline)]
96pub use crate::convert::{TryFrom, TryInto};
9798#[stable(feature = "prelude_2024", since = "1.85.0")]
99 #[doc(no_inline)]
100pub use crate::future::{Future, IntoFuture};
101}