3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-08-10 23:30:53 +00:00

Add jemalloc to test -sys style dependencies

This commit is contained in:
Arpad Borsos 2023-07-31 16:34:21 +02:00
parent fd201ad913
commit 9de8f90afb
No known key found for this signature in database
GPG key ID: FC7BCA77824B3298
4 changed files with 33 additions and 1 deletions

View file

@ -1,3 +1,10 @@
#[cfg(not(target_env = "msvc"))]
use tikv_jemallocator::Jemalloc;
#[cfg(not(target_env = "msvc"))]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;
fn main() {
println!("Hello, world!");
}