mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
49 lines
1.4 KiB
TOML
49 lines
1.4 KiB
TOML
[package]
|
|
authors = ["강동윤 <[email protected]>"]
|
|
description = "A thin wrapper for bumpalo"
|
|
documentation = "https://rustdoc.swc.rs/swc_allocator/"
|
|
edition = { workspace = true }
|
|
license = { workspace = true }
|
|
name = "swc_allocator"
|
|
repository = { workspace = true }
|
|
version = "5.0.0"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
|
[features]
|
|
hashbrown = ["dep:hashbrown", "hashbrown/allocator-api2"]
|
|
nightly = [
|
|
"skip-warning",
|
|
]
|
|
# The latest pinned nightly rejects the bumpalo/hashbrown/allocator-api2
|
|
# nightly-only allocator paths. Stable allocator-api2 support is sufficient
|
|
# for our usage here.
|
|
# This feature is actually useless.
|
|
serde = []
|
|
# This feature is used to suppress warnings about slowness caused by stable rustc.
|
|
# It's recommended to use nightly rustc until the allocator APIs are stabilized.
|
|
skip-warning = []
|
|
|
|
|
|
[dependencies]
|
|
allocator-api2 = { workspace = true }
|
|
bumpalo = { workspace = true, features = ["allocator-api2"] }
|
|
hashbrown = { workspace = true, optional = true }
|
|
rustc-hash = { workspace = true }
|
|
|
|
|
|
[dev-dependencies]
|
|
codspeed-criterion-compat = { workspace = true }
|
|
criterion = { workspace = true }
|
|
|
|
swc_malloc = { version = "1.2.5", path = "../swc_malloc" }
|
|
|
|
|
|
[[bench]]
|
|
harness = false
|
|
name = "bench"
|
|
required-features = ["nightly"]
|