diff --git a/Cargo.toml b/Cargo.toml index cbc2cc1..628e091 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,6 @@ hickory-proto = "0.26.0" httparse = "1.10.1" ipstack = { version = "1.0.0" } log = { version = "0.4.29", features = ["std"] } -mimalloc = { version = "0.1.50", default-features = false, optional = true } percent-encoding = "2.3.2" serde = { version = "1.0.228", features = ["derive"] } shlex = "1.3.0" diff --git a/build-aarch64-apple-ios-debug.sh b/build-aarch64-apple-ios-debug.sh index 6c97921..3dbf37d 100755 --- a/build-aarch64-apple-ios-debug.sh +++ b/build-aarch64-apple-ios-debug.sh @@ -5,7 +5,7 @@ rustup target add aarch64-apple-ios cargo install cbindgen echo "Building target aarch64-apple-ios..." -cargo build --target aarch64-apple-ios --features mimalloc +cargo build --target aarch64-apple-ios echo "Generating includes..." mkdir -p target/include/ diff --git a/build-aarch64-apple-ios.sh b/build-aarch64-apple-ios.sh index 4ed861e..491b772 100755 --- a/build-aarch64-apple-ios.sh +++ b/build-aarch64-apple-ios.sh @@ -5,7 +5,7 @@ rustup target add aarch64-apple-ios cargo install cbindgen echo "Building target aarch64-apple-ios..." -cargo build --release --target aarch64-apple-ios --features mimalloc +cargo build --release --target aarch64-apple-ios echo "Generating includes..." mkdir -p target/include/ diff --git a/build-apple.sh b/build-apple.sh index 11f92a2..d3e6f11 100755 --- a/build-apple.sh +++ b/build-apple.sh @@ -13,7 +13,7 @@ echo "cargo build --release --target aarch64-apple-darwin" cargo build --release --target aarch64-apple-darwin echo "cargo build --release --target aarch64-apple-ios" -cargo build --release --target aarch64-apple-ios --features mimalloc +cargo build --release --target aarch64-apple-ios echo "cargo build --release --target x86_64-apple-ios" cargo build --release --target x86_64-apple-ios diff --git a/src/lib.rs b/src/lib.rs index 90f5de5..25a13ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,10 +38,6 @@ pub use { traffic_status::{TrafficStatus, tun2proxy_set_traffic_status_callback}, }; -#[cfg(feature = "mimalloc")] -#[global_allocator] -static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; - pub use general_api::general_run_async; pub const FORCE_EXIT_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(2);