rust/library/alloc/Cargo.toml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.5 KiB
TOML
Raw Normal View History

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