mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
update actix web to stable version
This commit is contained in:
@ -5,7 +5,7 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
env_logger = "0.9.0"
|
||||
actix-web = "4.0.0-beta.21"
|
||||
actix-web = "4"
|
||||
askama = "0.11.0"
|
||||
|
||||
[build-dependencies]
|
||||
|
@ -4,6 +4,6 @@ version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.0.0-beta.21"
|
||||
actix-web = "4"
|
||||
handlebars = { version = "4.2.1", features = ["dir_source"] }
|
||||
serde_json = "1.0"
|
||||
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.0.0-rc.3"
|
||||
actix-web = "4"
|
||||
actix-web-lab = "0.10"
|
||||
env_logger = "0.9"
|
||||
log = "0.4"
|
||||
|
@ -6,4 +6,4 @@ edition = "2021"
|
||||
[dependencies]
|
||||
env_logger = "0.9.0"
|
||||
tera = "1.8.0"
|
||||
actix-web = "4.0.0-beta.21"
|
||||
actix-web = "4"
|
||||
|
@ -15,8 +15,8 @@ async fn index(
|
||||
let s = if let Some(name) = query.get("name") {
|
||||
// submitted form
|
||||
let mut ctx = tera::Context::new();
|
||||
ctx.insert("name", &name.to_owned());
|
||||
ctx.insert("text", &"Welcome!".to_owned());
|
||||
ctx.insert("name", name);
|
||||
ctx.insert("text", "Welcome!");
|
||||
tmpl.render("user.html", &ctx)
|
||||
.map_err(|_| error::ErrorInternalServerError("Template error"))?
|
||||
} else {
|
||||
|
@ -6,5 +6,5 @@ edition = "2021"
|
||||
[dependencies]
|
||||
env_logger = "0.9.0"
|
||||
tinytemplate = "1.1"
|
||||
actix-web = "4.0.0-beta.21"
|
||||
actix-web = "4"
|
||||
serde_json = "1"
|
||||
|
@ -5,7 +5,7 @@ publish = false
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.0.0-rc.3"
|
||||
actix-web = "4"
|
||||
env_logger = "0.9.0"
|
||||
yarte = { version = "0.15", features = ["bytes-buf", "html-min"] }
|
||||
derive_more = "0.99"
|
||||
|
Reference in New Issue
Block a user