We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef684e8 commit 09ac19bCopy full SHA for 09ac19b
Cargo.toml
@@ -16,7 +16,7 @@ bit-vec = "0.6"
16
bitvec = "1"
17
pbr = "*"
18
19
-[target.'cfg(not(target_env = "msvc"))'.dependencies]
+[target.'cfg(target_os="linux")'.dependencies]
20
tikv-jemallocator = "0.5"
21
22
[dev-dependencies]
src/main.rs
@@ -18,12 +18,9 @@ use std::collections::HashMap;
use std::time::SystemTime;
-#[cfg(not(target_env = "msvc"))]
-use tikv_jemallocator::Jemalloc;
23
-
24
+#[cfg(target_os = "linux")]
25
#[global_allocator]
26
-static GLOBAL: Jemalloc = Jemalloc;
+static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
27
28
fn main() {
29
let now = SystemTime::now();
0 commit comments