[package]
description = "rspack allocator"
edition.workspace = true
license = "MIT"
name = "rspack_allocator"
repository = "https://github.com/web-infra-dev/rspack"
version.workspace = true
[features]
system-allocator = []
[target.'cfg(not(target_family = "wasm"))'.dependencies]
sftrace-setup = { workspace = true, optional = true }
tracy-client = { workspace = true, optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
mimalloc = { workspace = true, features = ["local_dynamic_tls", "v3"] }
[target.'cfg(target_os = "macos")'.dependencies]
mimalloc = { workspace = true, features = ["v3"] }
[target.'cfg(all(not(target_os = "linux"), not(target_os = "macos"), not(target_family = "wasm")))'.dependencies]
mimalloc = { workspace = true, features = ["v3"] }
[lints]
workspace = true
[lib]
doctest = false
test = false