aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-01-07 20:24:06 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-01-07 20:24:06 +0100
commit9837efad983dd0de6439a8c9d59165df01adfe3f (patch)
treee77036332b97211675e7e00d419a08973e641373
parent76beb77ae2a5587341c121cd862f995e3523e522 (diff)
downloadaskama-9837efad983dd0de6439a8c9d59165df01adfe3f.tar.gz
askama-9837efad983dd0de6439a8c9d59165df01adfe3f.tar.bz2
askama-9837efad983dd0de6439a8c9d59165df01adfe3f.zip
Get rid of obsolete test code and unused dependency
-rw-r--r--Cargo.lock1
-rw-r--r--askama/Cargo.toml1
-rw-r--r--askama/src/lib.rs21
3 files changed, 0 insertions, 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 <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");
- }
-
-}