]>
Commit | Line | Data |
---|---|---|
7453a54e | 1 | [package] |
7453a54e SL |
2 | name = "core" |
3 | version = "0.0.0" | |
cdc7bbd5 XL |
4 | license = "MIT OR Apache-2.0" |
5 | repository = "https://github.com/rust-lang/rust.git" | |
6 | description = "The Rust Core Library" | |
94b46f34 XL |
7 | autotests = false |
8 | autobenches = false | |
5099ac24 | 9 | # If you update this, be sure to update it in a bunch of other places too! |
e8be2606 FG |
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. | |
5099ac24 | 12 | edition = "2021" |
7453a54e SL |
13 | |
14 | [lib] | |
7453a54e | 15 | test = false |
476ff2be | 16 | bench = false |
a7813a04 XL |
17 | |
18 | [[test]] | |
cc61c64b | 19 | name = "coretests" |
3dfed10e | 20 | path = "tests/lib.rs" |
476ff2be | 21 | |
8bb4bdeb XL |
22 | [[bench]] |
23 | name = "corebenches" | |
3dfed10e | 24 | path = "benches/lib.rs" |
f035d41b | 25 | test = true |
0531ce1d XL |
26 | |
27 | [dev-dependencies] | |
9c376795 FG |
28 | rand = { version = "0.8.5", default-features = false } |
29 | rand_xorshift = { version = "0.3.0", default-features = false } | |
a1dfa0c6 XL |
30 | |
31 | [features] | |
32 | # Make panics and failed asserts immediately abort without formatting any message | |
33 | panic_immediate_abort = [] | |
31ef2f64 FG |
34 | # Choose algorithms that are optimized for binary size instead of runtime performance |
35 | optimize_for_size = [] | |
cdc7bbd5 XL |
36 | # Make `RefCell` store additional debugging information, which is printed out when |
37 | # a borrow error occurs | |
38 | debug_refcell = [] | |
31ef2f64 FG |
39 | |
40 | [lints.rust.unexpected_cfgs] | |
41 | level = "warn" | |
42 | # x.py uses beta cargo, so `check-cfg` entries do not yet take effect | |
43 | # for rust-lang/rust. But for users of `-Zbuild-std` it does. | |
44 | check-cfg = [ | |
45 | 'cfg(bootstrap)', | |
46 | 'cfg(no_fp_fmt_parse)', | |
47 | 'cfg(stdarch_intel_sde)', | |
48 | # core use #[path] imports to portable-simd `core_simd` crate | |
49 | # and to stdarch `core_arch` crate which messes-up with Cargo list | |
50 | # of declared features, we therefor expect any feature cfg | |
51 | 'cfg(feature, values(any()))', | |
52 | ] |