diff options
-rw-r--r-- | Cargo.lock | 1 | ||||
-rw-r--r-- | askama/Cargo.toml | 1 | ||||
-rw-r--r-- | askama/src/lib.rs | 21 |
3 files changed, 0 insertions, 23 deletions
@@ -10,7 +10,6 @@ dependencies = [ name = "askama" version = "0.1.0" dependencies = [ - "askama_derive 0.1.0", "htmlescape 0.3.1 (git+https://github.com/veddan/rust-htmlescape)", ] diff --git a/askama/Cargo.toml b/askama/Cargo.toml index 7864818..404f7be 100644 --- a/askama/Cargo.toml +++ b/askama/Cargo.toml @@ -5,5 +5,4 @@ authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"] workspace = ".." [dependencies] -askama_derive = { path = "../askama_derive" } htmlescape = { git = "https://github.com/veddan/rust-htmlescape" } diff --git a/askama/src/lib.rs b/askama/src/lib.rs index f89683f..5ce214b 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -1,28 +1,7 @@ #![feature(proc_macro)] -#[macro_use] -extern crate askama_derive; - pub trait Template { fn render(&self) -> String; } pub mod filters; - -#[cfg(test)] -mod tests { - - extern crate askama; - - #[derive(Template)] - struct TestTemplate { - var: String, - } - - #[test] - fn it_works() { - let s = TestTemplate { var: "foo".to_string() }.render(); - assert_eq!(s, "hello world, foo"); - } - -} |