diff options
-rw-r--r-- | askama/Cargo.toml | 1 | ||||
-rw-r--r-- | askama_derive/Cargo.toml | 1 | ||||
-rw-r--r-- | askama_derive/src/lib.rs | 1 | ||||
-rw-r--r-- | askama_shared/src/generator.rs | 26 | ||||
-rw-r--r-- | askama_shared/src/lib.rs | 1 |
5 files changed, 0 insertions, 30 deletions
diff --git a/askama/Cargo.toml b/askama/Cargo.toml index f42e7d8..b3876e2 100644 --- a/askama/Cargo.toml +++ b/askama/Cargo.toml @@ -26,7 +26,6 @@ num-traits = ["askama_shared/num-traits"] with-actix-web = ["askama_derive/actix-web"] with-axum = ["askama_derive/axum"] with-gotham = ["askama_derive/gotham"] -with-iron = ["askama_derive/iron"] with-mendes = ["askama_derive/mendes"] with-rocket = ["askama_derive/rocket"] with-tide = ["askama_derive/tide"] diff --git a/askama_derive/Cargo.toml b/askama_derive/Cargo.toml index 60ad48d..5369935 100644 --- a/askama_derive/Cargo.toml +++ b/askama_derive/Cargo.toml @@ -18,7 +18,6 @@ config = ["askama_shared/config"] actix-web = [] axum = [] gotham = [] -iron = [] mendes = [] rocket = [] tide = [] diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index 3557267..b2379f3 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -115,7 +115,6 @@ const INTEGRATIONS: Integrations = Integrations { actix: cfg!(feature = "actix-web"), axum: cfg!(feature = "axum"), gotham: cfg!(feature = "gotham"), - iron: cfg!(feature = "iron"), mendes: cfg!(feature = "mendes"), rocket: cfg!(feature = "rocket"), tide: cfg!(feature = "tide"), diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 8b1fb33..b891d89 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -102,9 +102,6 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { if self.integrations.gotham { self.impl_gotham_into_response(&mut buf)?; } - if self.integrations.iron { - self.impl_iron_modifier_response(&mut buf)?; - } if self.integrations.mendes { self.impl_mendes_responder(&mut buf)?; } @@ -237,29 +234,6 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { buf.writeln("}") } - // Implement iron's Modifier<Response> if enabled - fn impl_iron_modifier_response(&mut self, buf: &mut Buffer) -> Result<(), CompileError> { - self.write_header( - buf, - "::askama_iron::Modifier<::askama_iron::Response>", - None, - )?; - buf.writeln("fn modify(self, res: &mut ::askama_iron::Response) {")?; - buf.writeln( - "res.body = Some(Box::new(::askama_iron::Template::render(&self).unwrap().into_bytes()));", - )?; - - match self.input.extension().unwrap_or("") { - "html" | "htm" => { - buf.writeln("::askama_iron::ContentType::html().0.modify(res);")?; - } - _ => (), - }; - - buf.writeln("}")?; - buf.writeln("}") - } - // Implement mendes' `Responder`. fn impl_mendes_responder(&mut self, buf: &mut Buffer) -> Result<(), CompileError> { let param = syn::parse_str("A: ::mendes::Application").unwrap(); diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 0768ff3..f6b94dd 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -278,7 +278,6 @@ pub struct Integrations { pub actix: bool, pub axum: bool, pub gotham: bool, - pub iron: bool, pub mendes: bool, pub rocket: bool, pub tide: bool, |