feat: Generate binary documentation
Some checks failed
Checks / Prefligit / prefligit (push) Failing after 1s
Release Docker Image / define-variables (push) Failing after 1s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Checks / Rust / Format (push) Failing after 1s
Checks / Rust / Clippy (push) Failing after 12s
Checks / Rust / Cargo Test (push) Failing after 24s

Also refactors main.rs/mod.rs to silence clippy
This commit is contained in:
Jade Ellis 2025-07-06 21:59:20 +01:00
commit 28a29c3a7b
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
12 changed files with 281 additions and 209 deletions

View file

@ -9,7 +9,10 @@ use conduwuit_core::{
};
use tokio::{runtime, sync::Mutex};
use crate::{clap::Args, logging::TracingFlameGuard};
use crate::{
clap::{Args, update},
logging::TracingFlameGuard,
};
/// Server runtime state; complete
pub(crate) struct Server {
@ -43,7 +46,7 @@ impl Server {
.map(PathBuf::as_path);
let config = Config::load(config_paths)
.and_then(|raw| crate::clap::update(raw, args))
.and_then(|raw| update(raw, args))
.and_then(|raw| Config::new(&raw))?;
let (tracing_reload_handle, tracing_flame_guard, capture) =