1diff --git a/Cargo.toml b/Cargo.toml
2index cbf1cdb..e819e14 100644
3--- a/Cargo.toml
4+++ b/Cargo.toml
5@@ -41,7 +41,6 @@ hyper = { version = "=1.6", features = ["http1", "http2", "server"] }
6 hyper-util = { version = "=0.1", features = ["server-auto", "tokio"] }
7 itertools = "0.14"
8 log = "0.4"
9-mimalloc = { version = "0.1.43", default-features = false, features = ["local_dynamic_tls"], optional = true }
10 mime_guess = "=2.0"
11 pem = "=3.0"
12 percent-encoding = "=2.3"
13@@ -52,7 +51,6 @@ pyo3-log = "=0.12"
14 rustls-pemfile = "2.2"
15 socket2 = { version = "=0.6", features = ["all"] }
16 sysinfo = "=0.36"
17-tikv-jemallocator = { version = "0.6.0", default-features = false, features = ["disable_initial_exec_tls"], optional = true }
18 tls-listener = { version = "=0.11", features = ["rustls-ring"] }
19 tokio = { version = "1.45", features = ["full"] }
20 tokio-stream = "0.1"
21@@ -62,10 +60,6 @@ tokio-util = { version = "0.7", features = ["codec", "rt"] }
22 [build-dependencies]
23 pyo3-build-config = "=0.25"
24
25-[features]
26-jemalloc = ["dep:tikv-jemallocator"]
27-mimalloc = ["dep:mimalloc"]
28-
29 [profile.release]
30 codegen-units = 1
31 debug = false
32diff --git a/src/lib.rs b/src/lib.rs
33index a17a7e5..8ea1a4d 100644
34--- a/src/lib.rs
35+++ b/src/lib.rs
36@@ -1,11 +1,3 @@
37-#[cfg(all(feature = "jemalloc", not(feature = "mimalloc")))]
38-#[global_allocator]
39-static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
40-
41-#[cfg(all(feature = "mimalloc", not(feature = "jemalloc")))]
42-#[global_allocator]
43-static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
44-
45 use pyo3::prelude::*;
46 use std::sync::OnceLock;
47