~repos /rust-embed
git clone https://pyrossh.dev/repos/rust-embed.git
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
52179a4c
—
Peter John 9 months ago
Merge pull request #258 from slowtec/update-to-axum-v0.8
- Cargo.toml +1 -1
- 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.
|
|
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.
|