1 2 3 4 5 6 7 8 9 10 11
//! This crate configures memory allocator.
//!
//! The swc crates related to the node binding should depend on this crate.
#[cfg(all(
target_arch = "x86_64",
not(target_env = "musl"),
not(debug_assertions)
))]
#[global_allocator]
static ALLOC: mimalloc_rust::GlobalMiMalloc = mimalloc_rust::GlobalMiMalloc;