tuwunel_core/alloc/mod.rs
1//! Integration with allocators
2
3// jemalloc
4#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
5pub mod je;
6#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
7pub use je::{memory_stats, memory_usage, trim};
8
9#[cfg(any(target_env = "msvc", not(feature = "jemalloc")))]
10pub mod default;
11#[cfg(any(target_env = "msvc", not(feature = "jemalloc")))]
12pub use default::{memory_stats, memory_usage, trim};