fixing codegen links

This commit is contained in:
Nikolay Volf 2016-04-25 06:29:20 +03:00
parent 020b490a72
commit 7cacdba191
2 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,6 @@ build = "build.rs"
[build-dependencies] [build-dependencies]
rustc_version = "0.1" rustc_version = "0.1"
syntex = "*" syntex = "*"
serde_codegen = "0.7.0"
"ethcore-ipc-codegen" = { path = "ipc/codegen" } "ethcore-ipc-codegen" = { path = "ipc/codegen" }
[dependencies] [dependencies]

View File

@ -17,7 +17,6 @@
extern crate rustc_version; extern crate rustc_version;
extern crate syntex; extern crate syntex;
extern crate ethcore_ipc_codegen as codegen; extern crate ethcore_ipc_codegen as codegen;
extern crate serde_codegen;
use std::env; use std::env;
use std::path::Path; use std::path::Path;
@ -39,12 +38,12 @@ fn main() {
registry.expand("", &src, &dst).unwrap(); registry.expand("", &src, &dst).unwrap();
} }
// serde pass // serialization pass
{ {
let src = Path::new(&out_dir).join("hypervisor_service_ipc.rs"); let src = Path::new(&out_dir).join("hypervisor_service_ipc.rs");
let dst = Path::new(&out_dir).join("hypervisor_service_cg.rs"); let dst = Path::new(&out_dir).join("hypervisor_service_cg.rs");
let mut registry = syntex::Registry::new(); let mut registry = syntex::Registry::new();
serde_codegen::register(&mut registry); codegen::register(&mut registry);
registry.expand("", &src, &dst).unwrap(); registry.expand("", &src, &dst).unwrap();
} }
} }