From 9837efad983dd0de6439a8c9d59165df01adfe3f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 7 Jan 2017 20:24:06 +0100 Subject: Get rid of obsolete test code and unused dependency --- Cargo.lock | 1 - askama/Cargo.toml | 1 - askama/src/lib.rs | 21 --------------------- 3 files changed, 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aeb6451..0897e33 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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 "] 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"); - } - -} -- cgit