~repos /rust-embed

#rust#proc-macro#http

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.


bf42a46f Josh Stone

5 years ago
Upgrade to actix-web 3
Files changed (2) hide show
  1. Cargo.toml +1 -1
  2. examples/actix.rs +1 -1
Cargo.toml CHANGED
@@ -37,7 +37,7 @@ rust-embed-impl = { version = "5.5.1", path = "impl"}
37
37
  rust-embed-utils = { version = "5.0.0", path = "utils"}
38
38
 
39
39
  include-flate = { version = "0.1", optional = true, features = ["stable"] }
40
- actix-web = { version = "2", default-features = false, optional = true }
40
+ actix-web = { version = "3", default-features = false, optional = true }
41
41
  actix-rt = { version = "1", optional = true }
42
42
  mime_guess = { version = "2", optional = true }
43
43
  tokio = { version = "0.2", optional = true, features = ["macros"] }
examples/actix.rs CHANGED
@@ -26,7 +26,7 @@ fn index() -> HttpResponse {
26
26
  handle_embedded_file("index.html")
27
27
  }
28
28
 
29
- fn dist(path: web::Path<(String,)>) -> HttpResponse {
29
+ fn dist(path: web::Path<String>) -> HttpResponse {
30
30
  handle_embedded_file(&path.0)
31
31
  }
32
32