Bump rust and dependency versions

This commit is contained in:
Joey Hines 2025-01-26 13:14:15 -07:00
parent 7babc1e6eb
commit 7467418cc3
Signed by: joeyahines
GPG Key ID: 38BA6F25C94C9382
3 changed files with 430 additions and 403 deletions

816
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -11,10 +11,10 @@ serde = {version = "1", features = ["derive"]}
serde_json = "1"
regex = "1"
tokio = { version = "1", features = ["full"] }
axum = "0.6.1"
axum = "0.8.1"
tera = "1.17.1"
tower = { version = "0.4", features = ["util", "timeout", "load-shed", "limit"] }
tower-http = { version = "0.4.4", features = [
tower = { version = "0.5.2", features = ["util", "timeout", "load-shed", "limit"] }
tower-http = { version = "0.6.2", features = [
"add-extension",
"compression-full",
"limit",
@ -22,6 +22,6 @@ tower-http = { version = "0.4.4", features = [
"fs"
] }
tower-layer = "0.3.2"
axum-extra = "0.8.0"
axum-extra = "0.10.0"
structopt = "0.3.26"
pulldown-cmark = "0.9.3"
pulldown-cmark = "0.12.2"

View File

@ -239,7 +239,7 @@ async fn main() {
let app = Router::new()
.route("/", get(index))
.route("/about/*path", get(md_page))
.route("/about/{*path}", get(md_page))
.nest_service("/static", ServeDir::new("static"))
.layer(
ServiceBuilder::new()
@ -252,8 +252,9 @@ async fn main() {
.with_state(tera);
println!("listening on {}", args.serve_at);
axum::Server::bind(&args.serve_at)
.serve(app.into_make_service())
let listener = tokio::net::TcpListener::bind(&args.serve_at).await.unwrap();
axum::serve(listener, app.into_make_service())
.await
.unwrap();
}