mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-24 17:37:34 +00:00
feat: Warn when the system allocator is used
This commit is contained in:
1 parent
8b9000cdf4
commit
2c79a67130
1 file changed
+5
@@ -32,6 +32,11 @@ pub fn run() -> Result<()> {
|
||||
pub fn run_with_args(args: &Args) -> Result<()> {
|
||||
// Spawn deadlock detection thread
|
||||
deadlock::spawn();
|
||||
#[cfg(not(any(feature = "jemalloc", feature = "mimalloc")))]
|
||||
conduwuit_core::warn!(
|
||||
"Your build configuration does not have a non-system allocator enabled. This may result \
|
||||
in decreased performance."
|
||||
);
|
||||
|
||||
// Because we're not using rustls default-tls, we have to initialise a TLS
|
||||
// provider
|
||||
|
||||
Reference in new issue
Block a user