mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
7c0c511933
This includes [1], which should help resolve an infinite recusion issue on WASM and SPARC (possibly other platforms). See [2] and [3] for further details. [1]: https://github.com/rust-lang/compiler-builtins/pull/708 [2]: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/sparc-unknown-none-elf.20regresssion.20between.20compiler-built.2E.2E.2E [3]: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/.5Bwasm32.5D.20Infinite.20recursion.20.60compiler-builtins.60.20.60__multi3.60
57 lines
1.5 KiB
TOML
57 lines
1.5 KiB
TOML
[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"
|
|
autotests = false
|
|
autobenches = false
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
core = { path = "../core" }
|
|
compiler_builtins = { version = "0.1.133", features = ['rustc-dep-of-std'] }
|
|
|
|
[dev-dependencies]
|
|
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
|
|
rand_xorshift = "0.3.0"
|
|
|
|
[[test]]
|
|
name = "alloctests"
|
|
path = "tests/lib.rs"
|
|
|
|
[[test]]
|
|
name = "vec_deque_alloc_error"
|
|
path = "tests/vec_deque_alloc_error.rs"
|
|
|
|
[[bench]]
|
|
name = "allocbenches"
|
|
path = "benches/lib.rs"
|
|
test = true
|
|
|
|
[[bench]]
|
|
name = "vec_deque_append_bench"
|
|
path = "benches/vec_deque_append.rs"
|
|
harness = false
|
|
|
|
[features]
|
|
compiler-builtins-mem = ['compiler_builtins/mem']
|
|
compiler-builtins-c = ["compiler_builtins/c"]
|
|
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
|
|
panic_immediate_abort = ["core/panic_immediate_abort"]
|
|
# Choose algorithms that are optimized for binary size instead of runtime performance
|
|
optimize_for_size = ["core/optimize_for_size"]
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
level = "warn"
|
|
check-cfg = [
|
|
'cfg(bootstrap)',
|
|
'cfg(no_global_oom_handling)',
|
|
'cfg(no_rc)',
|
|
'cfg(no_sync)',
|
|
'cfg(randomized_layouts)',
|
|
]
|