about summary refs log tree commit diff stats
path: root/src/main.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-06 15:45:11 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-06 15:45:11 +0200
commita6baea06697f6c76c695dc4198099deb8ba916e0 (patch)
tree476a3865f6b4bef04751ba20534813a58892811b /src/main.rs
parentchore: Initial commit (diff)
downloadback-a6baea06697f6c76c695dc4198099deb8ba916e0.zip
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 3 insertions, 6 deletions
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)