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)] loongarch32
33 'cfg(target_arch, values("loongarch32"))',
34 'cfg(no_fp_fmt_parse)',
35 # core use #[path] imports to portable-simd `core_simd` crate
36 # and to stdarch `core_arch` crate which messes-up with Cargo list
37 # of declared features, we therefor expect any feature cfg
38 'cfg(feature, values(any()))',
39 # Internal features aren't marked known config by default, we use these to
40 # gate tests.
41 'cfg(target_has_reliable_f16)',
42 'cfg(target_has_reliable_f16_math)',
43 'cfg(target_has_reliable_f128)',
44 'cfg(target_has_reliable_f128_math)',
45]
46
Learn Rust with the experts
Find out more