1[package]
2name = "core"
3version = "0.0.0"
4license = "MIT OR Apache-2.0"
5repository = "https://github.com/rust-lang/rust.git"
6description = "The Rust Core Library"
7autotests = false
8autobenches = false
9# If you update this, be sure to update it in a bunch of other places too!
10# As of 2024, it was src/tools/opt-dist, the core-no-fp-fmt-parse test and
11# the version of the prelude imported in core/lib.rs.
12edition = "2024"
13
14[lib]
15test = false
16bench = false
17
18[features]
19# Make panics and failed asserts immediately abort without formatting any message
20panic_immediate_abort = []
21# Choose algorithms that are optimized for binary size instead of runtime performance
22optimize_for_size = []
23# Make `RefCell` store additional debugging information, which is printed out when
24# a borrow error occurs
25debug_refcell = []
26# Make `TypeId` store a reference to the name of the type, so that it can print that name.
27debug_typeid = []
28
29[lints.rust.unexpected_cfgs]
30level = "warn"
31check-cfg = [
32 'cfg(bootstrap)',
33 'cfg(no_fp_fmt_parse)',
34 'cfg(stdarch_intel_sde)',
35 # #[cfg(bootstrap)]
36 'cfg(target_feature, values("vector-enhancements-1"))',
37 # core use #[path] imports to portable-simd `core_simd` crate
38 # and to stdarch `core_arch` crate which messes-up with Cargo list
39 # of declared features, we therefor expect any feature cfg
40 'cfg(feature, values(any()))',
41]
42