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