From 4e671b5fa9a13752aec5f017f873879d157b9a7e Mon Sep 17 00:00:00 2001 From: Aaronepower Date: Sun, 12 Jun 2016 18:27:05 +0100 Subject: [PATCH] removed syntex used new serde build process --- Cargo.lock | 3 +-- Cargo.toml | 5 ++--- cli.yml | 2 +- src/lib/build.rs | 6 +----- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e7839d8..a099bc3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "tokei" -version = "3.0.0" +version = "3.0.1" dependencies = [ "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)", @@ -13,7 +13,6 @@ dependencies = [ "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)", "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)", "walkdir 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/Cargo.toml b/Cargo.toml index 93b3f7e..fb6aa2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ # found in the LICENCE-{APACHE, MIT} file. [package] name = "tokei" -version = "3.0.1" +version = "3.0.2" authors = ["Aaronepower "] repository = "https://github.com/Aaronepower/tokei.git" homepage = "https://aaronepower.github.io/tokei/" @@ -23,8 +23,7 @@ doc = false # For building serde in stable. [build-dependencies] -serde_codegen = "=0.7.10" -syntex = "=0.35.0" +serde_codegen = "0.7.10" # Dependencies, and why they are used. # - Clap: For CLI argument parsing. diff --git a/cli.yml b/cli.yml index 4f3a8fc..d6a0a98 100644 --- a/cli.yml +++ b/cli.yml @@ -5,7 +5,7 @@ about: Count Code, Quickly. author: Aaron P. bin_name: Tokei name: Tokei -version: 3.0.1 +version: 3.0.2 args: - exclude: help: Ignore all files & directories containing the word. diff --git a/src/lib/build.rs b/src/lib/build.rs index ba4bb3b..e608484 100644 --- a/src/lib/build.rs +++ b/src/lib/build.rs @@ -1,4 +1,3 @@ -extern crate syntex; extern crate serde_codegen; use std::env; @@ -10,8 +9,5 @@ pub fn main() { let src = Path::new("src/lib/lib.rs.in"); let dst = Path::new(&out_dir).join("lib.rs"); - let mut registry = syntex::Registry::new(); - - serde_codegen::register(&mut registry); - registry.expand("", &src, &dst).unwrap(); + serde_codegen::expand(&src, &dst).unwrap(); }