removed syntex used new serde build process

This commit is contained in:
Aaronepower 2016-06-12 18:27:05 +01:00
parent f56efb6f22
commit 4e671b5fa9
4 changed files with 5 additions and 11 deletions

3
Cargo.lock generated
View file

@ -1,6 +1,6 @@
[root] [root]
name = "tokei" name = "tokei"
version = "3.0.0" version = "3.0.1"
dependencies = [ dependencies = [
"clap 2.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
"glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
@ -13,7 +13,6 @@ dependencies = [
"serde_json 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_yaml 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", "serde_yaml 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
"serializable_enum 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "serializable_enum 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"syntex 0.35.0 (registry+https://github.com/rust-lang/crates.io-index)",
"toml 0.1.30 (registry+https://github.com/rust-lang/crates.io-index)", "toml 0.1.30 (registry+https://github.com/rust-lang/crates.io-index)",
"walkdir 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "walkdir 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
] ]

View file

@ -3,7 +3,7 @@
# found in the LICENCE-{APACHE, MIT} file. # found in the LICENCE-{APACHE, MIT} file.
[package] [package]
name = "tokei" name = "tokei"
version = "3.0.1" version = "3.0.2"
authors = ["Aaronepower <theaaronepower@gmail.com>"] authors = ["Aaronepower <theaaronepower@gmail.com>"]
repository = "https://github.com/Aaronepower/tokei.git" repository = "https://github.com/Aaronepower/tokei.git"
homepage = "https://aaronepower.github.io/tokei/" homepage = "https://aaronepower.github.io/tokei/"
@ -23,8 +23,7 @@ doc = false
# For building serde in stable. # For building serde in stable.
[build-dependencies] [build-dependencies]
serde_codegen = "=0.7.10" serde_codegen = "0.7.10"
syntex = "=0.35.0"
# Dependencies, and why they are used. # Dependencies, and why they are used.
# - Clap: For CLI argument parsing. # - Clap: For CLI argument parsing.

View file

@ -5,7 +5,7 @@ about: Count Code, Quickly.
author: Aaron P. <theaaronepower@gmail.com> author: Aaron P. <theaaronepower@gmail.com>
bin_name: Tokei bin_name: Tokei
name: Tokei name: Tokei
version: 3.0.1 version: 3.0.2
args: args:
- exclude: - exclude:
help: Ignore all files & directories containing the word. help: Ignore all files & directories containing the word.

View file

@ -1,4 +1,3 @@
extern crate syntex;
extern crate serde_codegen; extern crate serde_codegen;
use std::env; use std::env;
@ -10,8 +9,5 @@ pub fn main() {
let src = Path::new("src/lib/lib.rs.in"); let src = Path::new("src/lib/lib.rs.in");
let dst = Path::new(&out_dir).join("lib.rs"); let dst = Path::new(&out_dir).join("lib.rs");
let mut registry = syntex::Registry::new(); serde_codegen::expand(&src, &dst).unwrap();
serde_codegen::register(&mut registry);
registry.expand("", &src, &dst).unwrap();
} }