2015-05-18 01:26:04 -05:00
|
|
|
extern crate serde_codegen;
|
|
|
|
|
|
|
|
use std::env;
|
|
|
|
use std::path::Path;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let out_dir = env::var_os("OUT_DIR").unwrap();
|
|
|
|
|
|
|
|
for &(src, dst) in &[
|
|
|
|
("tests/test.rs.in", "test.rs"),
|
|
|
|
("benches/bench.rs.in", "bench.rs"),
|
|
|
|
] {
|
|
|
|
let src = Path::new(src);
|
|
|
|
let dst = Path::new(&out_dir).join(dst);
|
2016-06-11 00:55:27 -05:00
|
|
|
serde_codegen::expand(&src, &dst).unwrap();
|
2015-05-18 01:26:04 -05:00
|
|
|
}
|
|
|
|
}
|