1[package]
2authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
3categories = ["memory-management", "rust-patterns", "no-std"]
4description = "A fast bump allocation arena for Rust."
5documentation = "https://docs.rs/bumpalo"
6edition = "2021"
7exclude = ["/.github/*", "/benches", "/tests", "valgrind.supp", "bumpalo.png"]
8license = "MIT OR Apache-2.0"
9name = "bumpalo"
10readme = "README.md"
11repository = "https://github.com/fitzgen/bumpalo"
12rust-version = "1.71.1"
13version = "3.17.0"
14
15[package.metadata.docs.rs]
16all-features = true
17
18[lib]
19path = "src/lib.rs"
20bench = false
21
22[[bench]]
23name = "benches"
24path = "benches/benches.rs"
25harness = false
26required-features = ["collections"]
27
28[[test]]
29name = "try_alloc"
30path = "tests/try_alloc.rs"
31harness = 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.
37allocator-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
40serde = { version = "1.0.171", optional = true }
41
42[dev-dependencies]
43quickcheck = "1.0.3"
44criterion = "0.3.6"
45rand = "0.8.5"
46serde = { version = "1.0.197", features = ["derive"] }
47serde_json = "1.0.115"
48
49[features]
50default = []
51collections = []
52boxed = []
53allocator_api = []
54std = []
55serde = ["dep:serde"]
56
57# [profile.bench]
58# debug = true
59