1[package] 2name = "alloc" 3version = "0.0.0" 4license = "MIT OR Apache-2.0" 5repository = "https://github.com/rust-lang/rust.git" 6description = "The Rust core allocation and collections library" 7autotests = false 8autobenches = false 9edition = "2021" 10 11[dependencies] 12core = { path = "../core" } 13compiler_builtins = { version = "0.1.40", features = ['rustc-dep-of-std'] } 14 15[dev-dependencies] 16rand = { version = "0.8.5", default-features = false, features = ["alloc"] } 17rand_xorshift = "0.3.0" 18 19[[test]] 20name = "alloctests" 21path = "tests/lib.rs" 22 23[[test]] 24name = "vec_deque_alloc_error" 25path = "tests/vec_deque_alloc_error.rs" 26 27[[bench]] 28name = "allocbenches" 29path = "benches/lib.rs" 30test = true 31 32[[bench]] 33name = "vec_deque_append_bench" 34path = "benches/vec_deque_append.rs" 35harness = false 36 37[features] 38default = ["compiler-builtins-weak-intrinsics"] 39compiler-builtins-mem = ['compiler_builtins/mem'] 40compiler-builtins-c = ["compiler_builtins/c"] 41compiler-builtins-no-asm = ["compiler_builtins/no-asm"] 42compiler-builtins-mangled-names = ["compiler_builtins/mangled-names"] 43compiler-builtins-weak-intrinsics = ["compiler_builtins/weak-intrinsics"] 44# Make panics and failed asserts immediately abort without formatting any message 45panic_immediate_abort = ["core/panic_immediate_abort"] 46# Choose algorithms that are optimized for binary size instead of runtime performance 47optimize_for_size = ["core/optimize_for_size"] 48 49[lints.rust.unexpected_cfgs] 50level = "warn" 51check-cfg = [ 52 'cfg(bootstrap)', 53 'cfg(no_global_oom_handling)', 54 'cfg(no_rc)', 55 'cfg(no_sync)', 56] 57