1 | cargo-features = ["public-dependency" ] |
2 | |
3 | [package] |
4 | name = "alloc" |
5 | version = "0.0.0" |
6 | license = "MIT OR Apache-2.0" |
7 | repository = "https://github.com/rust-lang/rust.git" |
8 | description = "The Rust core allocation and collections library" |
9 | autotests = false |
10 | autobenches = false |
11 | edition = "2024" |
12 | |
13 | [lib] |
14 | test = false |
15 | bench = false |
16 | |
17 | [dependencies] |
18 | core = { path = "../core" , public = true } |
19 | compiler_builtins = { version = "=0.1.152" , features = ['rustc-dep-of-std' ] } |
20 | |
21 | [features] |
22 | compiler-builtins-mem = ['compiler_builtins/mem' ] |
23 | compiler-builtins-c = ["compiler_builtins/c" ] |
24 | compiler-builtins-no-asm = ["compiler_builtins/no-asm" ] |
25 | compiler-builtins-no-f16-f128 = ["compiler_builtins/no-f16-f128" ] |
26 | compiler-builtins-mangled-names = ["compiler_builtins/mangled-names" ] |
27 | # Make panics and failed asserts immediately abort without formatting any message |
28 | panic_immediate_abort = ["core/panic_immediate_abort" ] |
29 | # Choose algorithms that are optimized for binary size instead of runtime performance |
30 | optimize_for_size = ["core/optimize_for_size" ] |
31 | |
32 | [lints.rust.unexpected_cfgs] |
33 | level = "warn" |
34 | check-cfg = [ |
35 | 'cfg(bootstrap)' , |
36 | 'cfg(no_global_oom_handling)' , |
37 | 'cfg(no_rc)' , |
38 | 'cfg(no_sync)' , |
39 | 'cfg(randomized_layouts)' , |
40 | ] |
41 | |