| 1 | [package] |
| 2 | authors = ["Nick Fitzgerald <fitzgen@gmail.com>" ] |
| 3 | categories = ["memory-management" , "rust-patterns" , "no-std" ] |
| 4 | description = "A fast bump allocation arena for Rust." |
| 5 | documentation = "https://docs.rs/bumpalo" |
| 6 | edition = "2021" |
| 7 | exclude = ["/.github/*" , "/benches" , "/tests" , "valgrind.supp" , "bumpalo.png" ] |
| 8 | license = "MIT OR Apache-2.0" |
| 9 | name = "bumpalo" |
| 10 | readme = "README.md" |
| 11 | repository = "https://github.com/fitzgen/bumpalo" |
| 12 | rust-version = "1.71.1" |
| 13 | version = "3.17.0" |
| 14 | |
| 15 | [package.metadata.docs.rs] |
| 16 | all-features = true |
| 17 | |
| 18 | [lib] |
| 19 | path = "src/lib.rs" |
| 20 | bench = false |
| 21 | |
| 22 | [[bench]] |
| 23 | name = "benches" |
| 24 | path = "benches/benches.rs" |
| 25 | harness = false |
| 26 | required-features = ["collections" ] |
| 27 | |
| 28 | [[test]] |
| 29 | name = "try_alloc" |
| 30 | path = "tests/try_alloc.rs" |
| 31 | harness = false |
| 32 | |
| 33 | [dependencies] |
| 34 | # This dependency provides a version of the unstable nightly Rust `Allocator` |
| 35 | # trait on stable Rust. Enabling this feature means that `bumpalo` will |
| 36 | # implement its `Allocator` trait. |
| 37 | allocator-api2 = { version = "0.2.8" , default-features = false, optional = true } |
| 38 | |
| 39 | # This dependency is here to allow integration with Serde, if the `serde` feature is enabled |
| 40 | serde = { version = "1.0.171" , optional = true } |
| 41 | |
| 42 | [dev-dependencies] |
| 43 | quickcheck = "1.0.3" |
| 44 | criterion = "0.3.6" |
| 45 | rand = "0.8.5" |
| 46 | serde = { version = "1.0.197" , features = ["derive" ] } |
| 47 | serde_json = "1.0.115" |
| 48 | |
| 49 | [features] |
| 50 | default = [] |
| 51 | collections = [] |
| 52 | boxed = [] |
| 53 | allocator_api = [] |
| 54 | std = [] |
| 55 | serde = ["dep:serde" ] |
| 56 | |
| 57 | # [profile.bench] |
| 58 | # debug = true |
| 59 | |