~repos /rust-embed

#rust#proc-macro#http

git clone https://pyrossh.dev/repos/rust-embed.git
Discussions: https://groups.google.com/g/rust-embed-devs

rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.


4be481cd Markus Kohlhase

10 months ago
Update axum to v0.8.x
Files changed (2) hide show
  1. Cargo.toml +1 -1
  2. examples/axum.rs +1 -1
Cargo.toml CHANGED
@@ -74,7 +74,7 @@ hex = { version = "0.4.3", optional = true }
74
74
  tokio = { version = "1.0", optional = true, features = ["macros", "rt-multi-thread"] }
75
75
  warp = { version = "0.3", default-features = false, optional = true }
76
76
  rocket = { version = "0.5.0-rc.2", default-features = false, optional = true }
77
- axum = { version = "0.7", default-features = false, features = ["http1", "tokio"], optional = true }
77
+ axum = { version = "0.8", default-features = false, features = ["http1", "tokio"], optional = true }
78
78
  poem = { version = "1.3.30", default-features = false, features = ["server"], optional = true }
79
79
  salvo = { version = "0.16", default-features = false, optional = true }
80
80
 
examples/axum.rs CHANGED
@@ -12,7 +12,7 @@ async fn main() {
12
12
  let app = Router::new()
13
13
  .route("/", get(index_handler))
14
14
  .route("/index.html", get(index_handler))
15
- .route("/dist/*file", get(static_handler))
15
+ .route("/dist/{*file}", get(static_handler))
16
16
  .fallback_service(get(not_found));
17
17
 
18
18
  // Start listening on the given address.