swc/crates/swc_allocator/Cargo.toml
2024-07-21 21:22:19 +09:00

47 lines
1.1 KiB
TOML

[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "A thin wrapper for bumpalo"
documentation = "https://rustdoc.swc.rs/swc_allocator/"
edition = "2021"
license = "Apache-2.0"
name = "swc_allocator"
repository = { workspace = true }
version = "0.1.8"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["scoped"]
nightly = ["bumpalo/allocator_api", "hashbrown/nightly"]
rkyv = ["dep:rkyv"]
scoped = ["nightly"]
serde = ["dep:serde"]
[dependencies]
bumpalo = { workspace = true, features = [
"boxed",
"collections",
"allocator-api2",
] }
hashbrown = { workspace = true }
ptr_meta = { workspace = true }
rkyv = { workspace = true, optional = true }
rustc-hash = { workspace = true }
serde = { workspace = true, optional = true }
triomphe = { workspace = true }
[dev-dependencies]
criterion = { workspace = true }
codspeed-criterion-compat = { workspace = true }
swc_malloc = { version = "0.5.10", path = "../swc_malloc" }
[[bench]]
harness = false
name = "bench"