mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-13 07:30:56 +01:00
13 lines
328 B
Rust
13 lines
328 B
Rust
#[cfg(target_env = "msvc")]
|
|
pub use std::alloc::System as DefaultAllocator;
|
|
#[cfg(not(target_env = "msvc"))]
|
|
pub use tikv_jemallocator::Jemalloc as DefaultAllocator;
|
|
|
|
#[macro_export]
|
|
macro_rules! used {
|
|
() => {
|
|
#[global_allocator]
|
|
static GLOBAL: $crate::DefaultAllocator = $crate::DefaultAllocator;
|
|
};
|
|
}
|