aboutsummaryrefslogtreecommitdiffstats
path: root/askama_actix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_actix/Cargo.toml2
-rw-r--r--askama_actix/src/lib.rs7
2 files changed, 8 insertions, 1 deletions
diff --git a/askama_actix/Cargo.toml b/askama_actix/Cargo.toml
index 7a6b91e..05439e1 100644
--- a/askama_actix/Cargo.toml
+++ b/askama_actix/Cargo.toml
@@ -17,7 +17,7 @@ edition = "2018"
actix-web = { version = "2" }
askama = { version = "0.10", path = "../askama", features = ["with-actix-web", "mime", "mime_guess"] }
bytes = { version = "0.5" }
-futures = { version = "0.3" }
+futures-util = { version = "0.3" }
[dev-dependencies]
actix-rt = { version = "1", default-features = false }
diff --git a/askama_actix/src/lib.rs b/askama_actix/src/lib.rs
index 7372034..e0f78ca 100644
--- a/askama_actix/src/lib.rs
+++ b/askama_actix/src/lib.rs
@@ -20,3 +20,10 @@ impl<T: askama::Template> TemplateIntoResponse for T {
.body(buffer.freeze()))
}
}
+
+// Re-exported for use by generated code
+#[doc(hidden)]
+pub mod futures {
+ pub use futures_util::future::ready;
+ pub use futures_util::future::Ready;
+}