Files
Peder Bergebakken Sundt e888dc4c3b python3Packages.granian: 2.7.2 -> 2.7.4
Changelog: https://github.com/emmett-framework/granian/releases/tag/v2.7.4

Had to re-create the mimalloc patch, opted to reduce the context to avoid doing so again in the future
2026-05-08 02:55:07 +02:00

34 lines
1.2 KiB
Diff

diff --git a/Cargo.toml b/Cargo.toml
index e1b6a3d..8fe77cf 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -46,3 +46,2 @@ itertools = "0.14"
log = "0.4"
-mimalloc = { version = "0.1.49", default-features = false, features = ["local_dynamic_tls"], optional = true }
mime_guess = "=2.0"
@@ -58,3 +57,2 @@ socket2 = { version = "=0.6", features = ["all"] }
sysinfo = "=0.38"
-tikv-jemallocator = { version = "0.6.0", default-features = false, features = ["disable_initial_exec_tls"], optional = true }
tls-listener = { version = "=0.11", git = "https://github.com/gi0baro/tls-listener.git", branch = "0.11.x", features = ["rustls-ring", "rustls-tls12"] }
@@ -68,6 +66,2 @@ pyo3-build-config = "=0.27"
-[features]
-jemalloc = ["dep:tikv-jemallocator"]
-mimalloc = ["dep:mimalloc"]
-
[profile.release]
diff --git a/src/lib.rs b/src/lib.rs
index f3a8218..805b725 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,9 +1 @@
-#[cfg(all(feature = "jemalloc", not(feature = "mimalloc")))]
-#[global_allocator]
-static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
-
-#[cfg(all(feature = "mimalloc", not(feature = "jemalloc")))]
-#[global_allocator]
-static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
-
use pyo3::prelude::*;