diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-12-07 15:35:32 +0100 |
---|---|---|
committer | Juan Aguilar <mhpoin@gmail.com> | 2018-12-08 21:43:20 +0100 |
commit | b18664fe9fe773ff2e6c513c747313342bb6573a (patch) | |
tree | fb156751d7fece9fe36251b7a88b28bca0ce671e /testing | |
parent | cdafc8d641632ed89fb6435bfebd70d27bfa74ba (diff) | |
download | askama-b18664fe9fe773ff2e6c513c747313342bb6573a.tar.gz askama-b18664fe9fe773ff2e6c513c747313342bb6573a.tar.bz2 askama-b18664fe9fe773ff2e6c513c747313342bb6573a.zip |
Upgrade to Rocket 0.4
Diffstat (limited to 'testing')
-rw-r--r-- | testing/Cargo.toml | 5 | ||||
-rw-r--r-- | testing/tests/rocket.rs | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/testing/Cargo.toml b/testing/Cargo.toml index 15cbfe2..3071542 100644 --- a/testing/Cargo.toml +++ b/testing/Cargo.toml @@ -9,7 +9,7 @@ actix = ["actix-web", "bytes", "askama/with-actix-web"] default = [] full = ["actix", "with-iron", "serde-json"] serde-json = ["serde_json", "askama/serde-json"] -with-rocket = ["rocket", "rocket_codegen", "askama/with-rocket"] +with-rocket = ["rocket", "askama/with-rocket"] with-iron = ["iron", "askama/with-iron"] [dependencies] @@ -17,8 +17,7 @@ actix-web = { version = "0.7", optional = true } askama = { path = "../askama", version = "*" } bytes = { version = "0.4", optional = true } iron = { version = "0.6", optional = true } -rocket = { version = "0.3", optional = true } -rocket_codegen = { version = "0.3", optional = true } +rocket = { version = "0.4", optional = true } serde_json = { version = "1.0", optional = true } [build-dependencies] diff --git a/testing/tests/rocket.rs b/testing/tests/rocket.rs index 2bf4713..93cf93d 100644 --- a/testing/tests/rocket.rs +++ b/testing/tests/rocket.rs @@ -1,9 +1,9 @@ #![cfg(feature = "with-rocket")] -#![feature(plugin)] -#![plugin(rocket_codegen)] +#![feature(proc_macro_hygiene, decl_macro)] #[macro_use] extern crate askama; +#[macro_use] extern crate rocket; use askama::Template; |