Add serde_codegen::expand to avoid public Syntex dependency

This commit is contained in:
David Tolnay
2016-06-09 00:54:32 -07:00
parent 1917e54a6e
commit 3d2e3beafe
3 changed files with 15 additions and 12 deletions
+1 -4
View File
@@ -12,10 +12,7 @@ mod inner {
let src = Path::new("src/main.rs.in");
let dst = Path::new(&out_dir).join("main.rs");
let mut registry = syntex::Registry::new();
serde_codegen::register(&mut registry);
registry.expand("", &src, &dst).unwrap();
serde_codegen::expand(&src, &dst).unwrap();
}
}