mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-24 09:27:38 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
760e600e62 | ||
|
|
2c79a67130 | ||
|
|
8b9000cdf4 | ||
|
|
370fa43b5a |
No files matched your search
@@ -0,0 +1 @@
|
||||
Moved the `jemalloc` feature out of `standard` (and `full`) into `default` so builders can more easily swap allocators. Builders using `--no-default-features` with the `full` or `standard` feature should now explicitly select an allocator (either `jemalloc` or `mimalloc`). Contributed by @Jade
|
||||
+3
-1
@@ -1,7 +1,9 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:recommended", "replacements:all", ":semanticCommitTypeAll(chore)", "helpers:pinGitHubActionDigests"],
|
||||
"dependencyDashboard": true,
|
||||
"dependencyDashboard": {
|
||||
"enabled": true
|
||||
},
|
||||
"osvVulnerabilityAlerts": true,
|
||||
"lockFileMaintenance": {
|
||||
"enabled": true,
|
||||
|
||||
+4
-4
@@ -38,12 +38,12 @@ mimalloc = [
|
||||
]
|
||||
jemalloc_conf = []
|
||||
jemalloc_prof = [
|
||||
"tikv-jemalloc-sys/profiling",
|
||||
"tikv-jemalloc-sys?/profiling",
|
||||
]
|
||||
jemalloc_stats = [
|
||||
"tikv-jemalloc-sys/stats",
|
||||
"tikv-jemalloc-ctl/stats",
|
||||
"tikv-jemallocator/stats",
|
||||
"tikv-jemalloc-sys?/stats",
|
||||
"tikv-jemalloc-ctl?/stats",
|
||||
"tikv-jemallocator?/stats",
|
||||
]
|
||||
perf_measurements = []
|
||||
release_max_log_level = [
|
||||
|
||||
+1
-1
@@ -48,6 +48,7 @@ assets = [
|
||||
[features]
|
||||
default = [
|
||||
"standard",
|
||||
"jemalloc",
|
||||
"ring",
|
||||
"bindgen-runtime", # replace with bindgen-static on alpine
|
||||
]
|
||||
@@ -57,7 +58,6 @@ standard = [
|
||||
"element_hacks",
|
||||
"gzip_compression",
|
||||
"io_uring",
|
||||
"jemalloc",
|
||||
"jemalloc_conf",
|
||||
"journald",
|
||||
"media_thumbnail",
|
||||
|
||||
@@ -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