We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a41dd commit 5bc472aCopy full SHA for 5bc472a
2 files changed
central/Cargo.toml
@@ -35,6 +35,9 @@ thiserror = "2.0.12"
35
zstd = "0.13.3"
36
bytes = "1.10.1"
37
38
+[target.'cfg(not(target_env = "msvc"))'.dependencies]
39
+tikv-jemallocator = "0.5"
40
+
41
[dependencies.rocket_sync_db_pools]
42
version = "0.1.0"
43
features = ["diesel_sqlite_pool"]
central/src/main.rs
@@ -31,6 +31,13 @@ mod schema;
31
mod state;
32
mod token_issuer;
33
34
+#[cfg(all(not(target_env = "msvc"), not(debug_assertions)))]
+use tikv_jemallocator::Jemalloc;
+#[global_allocator]
+static GLOBAL: Jemalloc = Jemalloc;
fn abort_misconfig() -> ! {
error!("aborting launch due to misconfiguration.");
std::process::exit(1);
0 commit comments