diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-01-03 10:01:16 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-01-03 10:01:16 +0100 |
commit | 4c8c773c84a48963e892c72f38f37bcb99b6eb74 (patch) | |
tree | 7ea8dd95e81bd40c1b24bb9143cbe865005b1ae0 | |
parent | 3e7983d7af8d19393507e50778b818f8dcf24b91 (diff) | |
download | askama-4c8c773c84a48963e892c72f38f37bcb99b6eb74.tar.gz askama-4c8c773c84a48963e892c72f38f37bcb99b6eb74.tar.bz2 askama-4c8c773c84a48963e892c72f38f37bcb99b6eb74.zip |
Rename askama_codegen to askama_derive
This appears to be best practice for crates using macros 1.1.
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | askama/Cargo.toml | 2 | ||||
-rw-r--r-- | askama/src/lib.rs | 2 | ||||
-rw-r--r-- | askama_derive/Cargo.toml (renamed from askama_codegen/Cargo.toml) | 2 | ||||
-rw-r--r-- | askama_derive/src/generator.rs (renamed from askama_codegen/src/generator.rs) | 0 | ||||
-rw-r--r-- | askama_derive/src/lib.rs (renamed from askama_codegen/src/lib.rs) | 0 | ||||
-rw-r--r-- | askama_derive/src/parser.rs (renamed from askama_codegen/src/parser.rs) | 0 | ||||
-rw-r--r-- | askama_test/Cargo.toml | 2 | ||||
-rw-r--r-- | askama_test/tests/simple.rs | 2 |
9 files changed, 6 insertions, 6 deletions
@@ -1,2 +1,2 @@ [workspace] -members = ["askama", "askama_codegen", "askama_test"] +members = ["askama", "askama_derive", "askama_test"] diff --git a/askama/Cargo.toml b/askama/Cargo.toml index 4cbfbe1..b2e0fbe 100644 --- a/askama/Cargo.toml +++ b/askama/Cargo.toml @@ -5,4 +5,4 @@ authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"] workspace = ".." [dependencies] -askama_codegen = { path = "../askama_codegen" } +askama_derive = { path = "../askama_derive" } diff --git a/askama/src/lib.rs b/askama/src/lib.rs index 93b7854..2412b1f 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -1,7 +1,7 @@ #![feature(proc_macro)] #[macro_use] -extern crate askama_codegen; +extern crate askama_derive; pub trait Template { fn render(&self) -> String; diff --git a/askama_codegen/Cargo.toml b/askama_derive/Cargo.toml index 860f930..9f525f4 100644 --- a/askama_codegen/Cargo.toml +++ b/askama_derive/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "askama_codegen" +name = "askama_derive" version = "0.1.0" authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"] diff --git a/askama_codegen/src/generator.rs b/askama_derive/src/generator.rs index b1babce..b1babce 100644 --- a/askama_codegen/src/generator.rs +++ b/askama_derive/src/generator.rs diff --git a/askama_codegen/src/lib.rs b/askama_derive/src/lib.rs index d923e19..d923e19 100644 --- a/askama_codegen/src/lib.rs +++ b/askama_derive/src/lib.rs diff --git a/askama_codegen/src/parser.rs b/askama_derive/src/parser.rs index 5f3f8c5..5f3f8c5 100644 --- a/askama_codegen/src/parser.rs +++ b/askama_derive/src/parser.rs diff --git a/askama_test/Cargo.toml b/askama_test/Cargo.toml index 8d01793..63896b7 100644 --- a/askama_test/Cargo.toml +++ b/askama_test/Cargo.toml @@ -5,5 +5,5 @@ authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"] workspace = ".." [dependencies] -askama_codegen = { path = "../askama_codegen" } +askama_derive = { path = "../askama_derive" } askama = { path = "../askama" } diff --git a/askama_test/tests/simple.rs b/askama_test/tests/simple.rs index 08b4488..0943f12 100644 --- a/askama_test/tests/simple.rs +++ b/askama_test/tests/simple.rs @@ -1,7 +1,7 @@ #![feature(proc_macro)] #[macro_use] -extern crate askama_codegen; +extern crate askama_derive; extern crate askama; use askama::Template; |