aboutsummaryrefslogtreecommitdiffstats
path: root/askama_rocket
diff options
context:
space:
mode:
authorLibravatar Vypo Mouse <vypo@vypo.dev>2023-03-25 14:40:37 -0400
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-05-19 16:06:10 +0200
commit1856c4b57ca7ab706552e2c47f550c86e8999e7c (patch)
tree59f9e06dc1089799651fc27adee22687f52f16dd /askama_rocket
parent4c98685b81509a59bf7719321eb2136d7dccca38 (diff)
downloadaskama-1856c4b57ca7ab706552e2c47f550c86e8999e7c.tar.gz
askama-1856c4b57ca7ab706552e2c47f550c86e8999e7c.tar.bz2
askama-1856c4b57ca7ab706552e2c47f550c86e8999e7c.zip
Update to rocket 0.5-rc.3
Diffstat (limited to 'askama_rocket')
-rw-r--r--askama_rocket/Cargo.toml2
-rw-r--r--askama_rocket/tests/basic.rs6
2 files changed, 7 insertions, 1 deletions
diff --git a/askama_rocket/Cargo.toml b/askama_rocket/Cargo.toml
index e15724b..e9f5afe 100644
--- a/askama_rocket/Cargo.toml
+++ b/askama_rocket/Cargo.toml
@@ -15,7 +15,7 @@ rust-version = "1.58"
[dependencies]
askama = { version = "0.12", path = "../askama", default-features = false, features = ["with-rocket", "mime", "mime_guess"] }
-rocket = { version = "0.5.0-rc.2", default-features = false }
+rocket = { version = "0.5.0-rc.3", default-features = false }
[dev-dependencies]
futures-lite = "1.12.0"
diff --git a/askama_rocket/tests/basic.rs b/askama_rocket/tests/basic.rs
index a61c188..1ded705 100644
--- a/askama_rocket/tests/basic.rs
+++ b/askama_rocket/tests/basic.rs
@@ -3,6 +3,7 @@ use askama::Template;
use futures_lite::future::block_on;
use rocket::http::{ContentType, Status};
use rocket::local::asynchronous::Client;
+use rocket::Responder;
#[derive(Template)]
#[template(path = "hello.html")]
@@ -10,6 +11,11 @@ struct HelloTemplate<'a> {
name: &'a str,
}
+#[derive(Responder)]
+struct HelloResponder<'a> {
+ template: HelloTemplate<'a>,
+}
+
#[rocket::get("/")]
fn hello() -> HelloTemplate<'static> {
HelloTemplate { name: "world" }