Skip to content

Commit 95088fe

Browse files
committed
Drop the target_env = "msvc" conditions for tikv-jemallocator
1 parent 241f784 commit 95088fe

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ spdx = "=0.12.0"
133133
tar = "=0.4.44"
134134
tempfile = "=3.23.0"
135135
thiserror = "=2.0.17"
136+
tikv-jemallocator = { version = "=0.6.1", features = ['unprefixed_malloc_on_supported_platforms', 'profiling'] }
136137
tokio = { version = "=1.48.0", features = ["net", "signal", "io-std", "io-util", "rt-multi-thread", "macros", "process"]}
137138
tokio-postgres = "=0.7.15"
138139
tokio-util = "=0.7.17"
@@ -146,9 +147,6 @@ url = "=2.5.7"
146147
utoipa = { version = "=5.4.0", features = ["chrono"] }
147148
utoipa-axum = "=0.2.0"
148149

149-
[target.'cfg(not(target_env = "msvc"))'.dependencies]
150-
tikv-jemallocator = { version = "=0.6.1", features = ['unprefixed_malloc_on_supported_platforms', 'profiling'] }
151-
152150
[dev-dependencies]
153151
bytes = "=1.11.0"
154152
crates_io_docs_rs = { path = "crates/crates_io_docs_rs", features = ["mock"] }

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ use std::sync::Arc;
1111

1212
use crate::app::AppState;
1313
use crate::router::build_axum_router;
14-
#[cfg(not(target_env = "msvc"))]
1514
use tikv_jemallocator::Jemalloc;
1615

17-
#[cfg(not(target_env = "msvc"))]
1816
#[global_allocator]
1917
static ALLOC: Jemalloc = Jemalloc;
2018

0 commit comments

Comments
 (0)