[package]
authors       = ["강동윤 <kdy1997.dev@gmail.com>"]
description   = "Configures the best memory allocator for each platforms"
documentation = "https://rustdoc.swc.rs/swc_malloc/"
edition       = { workspace = true }
license       = { workspace = true }
name          = "swc_malloc"
repository    = { workspace = true }
version       = "1.2.2"

[lib]
bench = false

[dependencies]

[target.'cfg(not(any(target_os = "linux", target_family = "wasm", target_env = "musl", all(target_os = "linux", any(target_arch="aarch64", target_env = "gnu", target_arch="arm")))))'.dependencies]
mimalloc = { version = "0.1.43", features = [] }

[target.'cfg(all(target_os = "linux", not(any(target_family = "wasm", target_env = "musl", all(target_os = "linux", target_env = "gnu", any(target_arch = "aarch64", target_arch = "arm"))))))'.dependencies]
mimalloc = { version = "0.1.43", features = ["local_dynamic_tls"] }

[target.'cfg(all(target_os = "linux", target_env = "gnu", any(target_arch = "aarch64", target_arch = "arm")))'.dependencies]
tikv-jemallocator = { version = "0.5", features = ["disable_initial_exec_tls"] }
