Compare commits
1 Commits
master
...
renovate/c
Author | SHA1 | Date | |
---|---|---|---|
adb312acbf |
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -666,7 +666,6 @@ dependencies = [
|
||||
"actix-web",
|
||||
"clap",
|
||||
"env_logger",
|
||||
"log",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -7,4 +7,3 @@ edition = "2021"
|
||||
clap = {version = "4.5.9", features = ["derive", "env"]}
|
||||
actix-web = "4"
|
||||
env_logger = "0.11.5"
|
||||
log = "0.4.22"
|
3
renovate.json
Normal file
3
renovate.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||
}
|
@ -7,9 +7,9 @@ use env_logger::Env;
|
||||
#[derive(clap::Parser, Debug)]
|
||||
#[command(version, about, long_about = None)]
|
||||
struct Args {
|
||||
/// Listen address
|
||||
/// Name of the person to greet
|
||||
#[arg(env, short, long, default_value = "0.0.0.0:8000")]
|
||||
listen_addr: String,
|
||||
listen_url: String,
|
||||
}
|
||||
|
||||
#[get("/")]
|
||||
@ -32,8 +32,6 @@ async fn main() -> std::io::Result<()> {
|
||||
|
||||
let args = Args::parse();
|
||||
|
||||
log::info!("Starting to listen on {}", args.listen_addr);
|
||||
|
||||
HttpServer::new(|| {
|
||||
App::new()
|
||||
.wrap(Logger::default())
|
||||
@ -41,7 +39,7 @@ async fn main() -> std::io::Result<()> {
|
||||
.service(echo)
|
||||
.route("/hey", web::get().to(manual_hello))
|
||||
})
|
||||
.bind(args.listen_addr)?
|
||||
.bind(args.listen_url)?
|
||||
.run()
|
||||
.await
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user