From a6baea06697f6c76c695dc4198099deb8ba916e0 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 6 Jun 2025 15:45:11 +0200 Subject: feat(treewide): Prepare for first release This commit contains many changes, as they were developed alongside `git-bug-rs` and unfortunately not separately committed. A toplevel summary would include: - Appropriate redirects, - The templating moved to `vy` (as this works with rustfmt formatting), - Search support (via `git-bug-rs`), - And better layout in the link section. --- src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 49ffe5c..28ca543 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,15 +19,12 @@ use crate::config::BackConfig; mod cli; pub mod config; mod error; -pub mod git_bug; mod web; -fn main() -> Result<(), String> { +fn main() { if let Err(err) = server_main() { eprintln!("Error {err}"); process::exit(1); - } else { - Ok(()) } } @@ -37,9 +34,9 @@ async fn server_main() -> Result<(), error::Error> { stderrlog::new() .module(module_path!()) - .modules(["hyper", "http"]) + .modules(["hyper", "http", "git_bug"]) .quiet(false) - .show_module_names(false) + .show_module_names(true) .color(stderrlog::ColorChoice::Auto) .verbosity(2) .timestamp(stderrlog::Timestamp::Off) -- cgit 1.4.1