diff options
author | Kellen Frodelius-Fujimoto <kellen@kellenfujimoto.com> | 2018-12-10 20:21:15 +0100 |
---|---|---|
committer | Juan Aguilar <mhpoin@gmail.com> | 2018-12-10 22:29:24 +0100 |
commit | 9b0001cdf3991e74c042a9661e306b13785ca223 (patch) | |
tree | d8ccfbdec0c5ad4d81150b92c2c74952abfc5da2 /testing/Cargo.toml | |
parent | 5549f9a3cd94e3cd6700067b1c74194dadb58a0f (diff) | |
download | askama-9b0001cdf3991e74c042a9661e306b13785ca223.tar.gz askama-9b0001cdf3991e74c042a9661e306b13785ca223.tar.bz2 askama-9b0001cdf3991e74c042a9661e306b13785ca223.zip |
Implement `IntoResponse` for `Template`, allowing them to be used in `gotham` handlers.
Diffstat (limited to '')
-rw-r--r-- | testing/Cargo.toml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/Cargo.toml b/testing/Cargo.toml index 16d2f34..720ef2e 100644 --- a/testing/Cargo.toml +++ b/testing/Cargo.toml @@ -12,6 +12,7 @@ full = ["actix", "with-iron", "serde-json"] serde-json = ["serde_json", "askama/serde-json"] with-rocket = ["rocket", "askama/with-rocket"] with-iron = ["iron", "askama/with-iron"] +with-gotham = ["gotham", "askama/with-gotham", "mime", "hyper"] [dependencies] actix-web = { version = "0.7", optional = true } @@ -20,6 +21,9 @@ bytes = { version = "0.4", optional = true } iron = { version = "0.6", optional = true } rocket = { version = "0.4", optional = true } serde_json = { version = "1.0", optional = true } +gotham = { version = "0.3", optional = true } +mime = { version = "0.3", optional = true } +hyper = { version = "0.12", optional = true } [build-dependencies] askama = { path = "../askama", version = "*" } |