fix: stop using mimalloc due to compilation failure with musl

This commit is contained in:
Jun Kurihara 2025-04-03 13:11:24 +09:00
commit e31e61485d
No known key found for this signature in database
GPG key ID: B184DE07B34AA676
3 changed files with 6 additions and 25 deletions

View file

@ -29,7 +29,8 @@ rpxy-lib = { path = "../rpxy-lib/", default-features = false, features = [
"sticky-cookie",
] }
mimalloc = { version = "*", default-features = false }
# TODO: stop using mimalloc doe to compilation failure by musl
# mimalloc = { version = "*", default-features = false }
anyhow = "1.0.97"
ahash = "0.8.11"
serde = { version = "1.0.219", default-features = false, features = ["derive"] }

View file

@ -1,5 +1,5 @@
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
// #[global_allocator]
// static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
mod config;
mod constants;
@ -9,13 +9,13 @@ mod log;
#[cfg(feature = "acme")]
use crate::config::build_acme_manager;
use crate::{
config::{build_cert_manager, build_settings, parse_opts, ConfigToml, ConfigTomlReloader},
config::{ConfigToml, ConfigTomlReloader, build_cert_manager, build_settings, parse_opts},
constants::CONFIG_WATCH_DELAY_SECS,
error::*,
log::*,
};
use hot_reload::{ReloaderReceiver, ReloaderService};
use rpxy_lib::{entrypoint, RpxyOptions, RpxyOptionsBuilder};
use rpxy_lib::{RpxyOptions, RpxyOptionsBuilder, entrypoint};
use std::sync::Arc;
use tokio_util::sync::CancellationToken;