2016-01-21 23:19:23 +00:00
|
|
|
[package]
|
|
|
|
name = "alloc"
|
|
|
|
version = "0.0.0"
|
2021-02-20 18:18:01 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
repository = "https://github.com/rust-lang/rust.git"
|
|
|
|
description = "The Rust core allocation and collections library"
|
2018-05-10 18:02:19 +00:00
|
|
|
autotests = false
|
|
|
|
autobenches = false
|
2021-12-17 13:53:28 +00:00
|
|
|
edition = "2021"
|
2016-01-21 23:19:23 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2020-06-12 02:31:49 +00:00
|
|
|
core = { path = "../core" }
|
2024-10-18 20:55:01 +00:00
|
|
|
compiler_builtins = { version = "0.1.134", features = ['rustc-dep-of-std'] }
|
2017-06-13 22:52:59 +00:00
|
|
|
|
2017-11-01 19:32:13 +00:00
|
|
|
[dev-dependencies]
|
2022-11-21 00:55:41 +00:00
|
|
|
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
|
|
|
|
rand_xorshift = "0.3.0"
|
2017-11-01 19:32:13 +00:00
|
|
|
|
2017-06-13 22:52:59 +00:00
|
|
|
[[test]]
|
2023-11-26 12:04:56 +00:00
|
|
|
name = "alloctests"
|
2020-06-12 02:31:49 +00:00
|
|
|
path = "tests/lib.rs"
|
2017-06-13 22:52:59 +00:00
|
|
|
|
2024-05-07 19:43:54 +00:00
|
|
|
[[test]]
|
|
|
|
name = "vec_deque_alloc_error"
|
|
|
|
path = "tests/vec_deque_alloc_error.rs"
|
|
|
|
|
2017-06-13 22:52:59 +00:00
|
|
|
[[bench]]
|
2023-11-26 12:04:56 +00:00
|
|
|
name = "allocbenches"
|
2020-06-12 02:31:49 +00:00
|
|
|
path = "benches/lib.rs"
|
2020-06-08 16:09:21 +00:00
|
|
|
test = true
|
2018-08-10 19:52:00 +00:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "vec_deque_append_bench"
|
2020-06-12 02:31:49 +00:00
|
|
|
path = "benches/vec_deque_append.rs"
|
2018-08-10 19:52:00 +00:00
|
|
|
harness = false
|
2018-12-14 17:05:31 +00:00
|
|
|
|
|
|
|
[features]
|
|
|
|
compiler-builtins-mem = ['compiler_builtins/mem']
|
2019-05-14 21:43:43 +00:00
|
|
|
compiler-builtins-c = ["compiler_builtins/c"]
|
2020-12-09 19:48:08 +00:00
|
|
|
compiler-builtins-no-asm = ["compiler_builtins/no-asm"]
|
2024-05-11 13:56:59 +00:00
|
|
|
compiler-builtins-no-f16-f128 = ["compiler_builtins/no-f16-f128"]
|
2020-10-28 06:54:30 +00:00
|
|
|
compiler-builtins-mangled-names = ["compiler_builtins/mangled-names"]
|
2023-10-25 23:46:06 +00:00
|
|
|
# Make panics and failed asserts immediately abort without formatting any message
|
2024-05-13 20:20:32 +00:00
|
|
|
panic_immediate_abort = ["core/panic_immediate_abort"]
|
2024-05-11 12:20:03 +00:00
|
|
|
# Choose algorithms that are optimized for binary size instead of runtime performance
|
2024-05-13 20:20:32 +00:00
|
|
|
optimize_for_size = ["core/optimize_for_size"]
|
2024-05-19 23:14:48 +00:00
|
|
|
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
|
|
level = "warn"
|
|
|
|
check-cfg = [
|
|
|
|
'cfg(bootstrap)',
|
2024-05-20 15:06:14 +00:00
|
|
|
'cfg(no_global_oom_handling)',
|
2024-05-19 23:14:48 +00:00
|
|
|
'cfg(no_rc)',
|
|
|
|
'cfg(no_sync)',
|
2022-09-02 18:18:19 +00:00
|
|
|
'cfg(randomized_layouts)',
|
2024-05-19 23:14:48 +00:00
|
|
|
]
|