Index: .efiles ================================================================== --- .efiles +++ .efiles @@ -1,6 +1,7 @@ Cargo.toml +README.md www/index.md www/getting-it.md www/running-it.md www/run-as-service.md www/systemd.md Index: Cargo.toml ================================================================== --- Cargo.toml +++ Cargo.toml @@ -5,11 +5,11 @@ license = "0BSD" # https://crates.io/category_slugs categories = [ "web-programming::http-server" ] keywords = [ "web", "server", "service" ] repository = "https://repos.qrnch.tech/pub/static-auth-rocket" -description = "Simple authenticated http server for serving static content." +description = "Simple basic auth http server for serving static content." rust-version = "1.70" exclude = [ ".fossil-settings", ".efiles", ".fslckout", ADDED README.md Index: README.md ================================================================== --- /dev/null +++ README.md @@ -0,0 +1,5 @@ +# Static Auth Rocket + +This a [Rocket](https://rocket.rs)-based HTTP server used to serve static +content, requiring basic http authentication. + Index: src/argp.rs ================================================================== --- src/argp.rs +++ src/argp.rs @@ -67,15 +67,15 @@ ) -> Result { // Use current working directory as the service's workdir let cwd = std::env::current_dir()?.to_str().unwrap().to_string(); let regsvc = regsvc.workdir(cwd); + let desc = env!("CARGO_PKG_DESCRIPTION"); + let regsvc = regsvc .display_name("Static Auth Rocket") - .description( - "A static content HTTP server that requires basic authentication." - ) + .description(desc) .conf_reload() .netservice(); // ToDo: Print a warning if Rocket.toml doesn't exist in current directory? Ok(regsvc)