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# Issue a compile error that says to use -Cpanic=immediate-abort
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 = []
26llvm_enzyme = []
27
28[lints.rust.unexpected_cfgs]
29level = "warn"
30check-cfg = [
31 'cfg(no_fp_fmt_parse)',
32 # core use #[path] imports to portable-simd `core_simd` crate
33 # and to stdarch `core_arch` crate which messes-up with Cargo list
34 # of declared features, we therefor expect any feature cfg
35 'cfg(feature, values(any()))',
36 # Internal features aren't marked known config by default, we use these to
37 # gate tests.
38 'cfg(target_has_reliable_f16)',
39 'cfg(target_has_reliable_f16_math)',
40 'cfg(target_has_reliable_f128)',
41 'cfg(target_has_reliable_f128_math)',
42 'cfg(llvm_enzyme)',
43
44]
45