Getting rid of syntex

This commit is contained in:
Tomasz Drwięga
2016-08-19 14:18:57 +02:00
parent 070a2157e6
commit d996754927
14 changed files with 14 additions and 40 deletions

View File

@@ -48,6 +48,13 @@ include!(concat!(env!("OUT_DIR"), "/lib.rs"));
#[cfg(not(feature = "with-syntex"))]
include!("lib.rs.in");
#[cfg(feature = "with-syntex")]
pub fn expand(src: &std::path::Path, dst: &std::path::Path) {
let mut registry = syntex::Registry::new();
register(&mut registry);
registry.expand("", src, dst).unwrap();
}
#[cfg(feature = "with-syntex")]
pub fn register(reg: &mut syntex::Registry) {
use syntax::{ast, fold};

View File

@@ -17,5 +17,4 @@ ethcore-util = { path = "../../util" }
log = "0.3"
[build-dependencies]
syntex = "0.33"
ethcore-ipc-codegen = { path = "../codegen" }