| 1 | [package] |
| 2 | name = "core" |
| 3 | version = "0.0.0" |
| 4 | license = "MIT OR Apache-2.0" |
| 5 | repository = "https://github.com/rust-lang/rust.git" |
| 6 | description = "The Rust Core Library" |
| 7 | autotests = false |
| 8 | autobenches = 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. |
| 12 | edition = "2024" |
| 13 | |
| 14 | [lib] |
| 15 | test = false |
| 16 | bench = false |
| 17 | |
| 18 | [features] |
| 19 | # Make panics and failed asserts immediately abort without formatting any message |
| 20 | panic_immediate_abort = [] |
| 21 | # Choose algorithms that are optimized for binary size instead of runtime performance |
| 22 | optimize_for_size = [] |
| 23 | # Make `RefCell` store additional debugging information, which is printed out when |
| 24 | # a borrow error occurs |
| 25 | debug_refcell = [] |
| 26 | # Make `TypeId` store a reference to the name of the type, so that it can print that name. |
| 27 | debug_typeid = [] |
| 28 | |
| 29 | [lints.rust.unexpected_cfgs] |
| 30 | level = "warn" |
| 31 | check-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 | |