1 | [package] |
2 | name = "alloc" |
3 | version = "0.0.0" |
4 | license = "MIT OR Apache-2.0" |
5 | repository = "https://github.com/rust-lang/rust.git" |
6 | description = "The Rust core allocation and collections library" |
7 | autotests = false |
8 | autobenches = false |
9 | edition = "2021" |
10 | |
11 | [dependencies] |
12 | core = { path = "../core" } |
13 | compiler_builtins = { version = "0.1.40" , features = ['rustc-dep-of-std' ] } |
14 | |
15 | [dev-dependencies] |
16 | rand = { version = "0.8.5" , default-features = false, features = ["alloc" ] } |
17 | rand_xorshift = "0.3.0" |
18 | |
19 | [[test]] |
20 | name = "alloctests" |
21 | path = "tests/lib.rs" |
22 | |
23 | [[bench]] |
24 | name = "allocbenches" |
25 | path = "benches/lib.rs" |
26 | test = true |
27 | |
28 | [[bench]] |
29 | name = "vec_deque_append_bench" |
30 | path = "benches/vec_deque_append.rs" |
31 | harness = false |
32 | |
33 | [features] |
34 | compiler-builtins-mem = ['compiler_builtins/mem' ] |
35 | compiler-builtins-c = ["compiler_builtins/c" ] |
36 | compiler-builtins-no-asm = ["compiler_builtins/no-asm" ] |
37 | compiler-builtins-mangled-names = ["compiler_builtins/mangled-names" ] |
38 | compiler-builtins-weak-intrinsics = ["compiler_builtins/weak-intrinsics" ] |
39 | # Make panics and failed asserts immediately abort without formatting any message |
40 | panic_immediate_abort = [] |
41 | |