mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 15:26:00 +00:00
Use serde_codegen::expand in json_tests/build.rs
This commit is contained in:
parent
1558900eef
commit
3bafe903a8
@ -2,7 +2,6 @@ extern crate skeptic;
|
|||||||
|
|
||||||
#[cfg(feature = "with-syntex")]
|
#[cfg(feature = "with-syntex")]
|
||||||
mod with_syntex {
|
mod with_syntex {
|
||||||
extern crate syntex;
|
|
||||||
extern crate serde_codegen;
|
extern crate serde_codegen;
|
||||||
extern crate indoc;
|
extern crate indoc;
|
||||||
|
|
||||||
@ -19,11 +18,8 @@ mod with_syntex {
|
|||||||
let src = Path::new(src);
|
let src = Path::new(src);
|
||||||
let dst = Path::new(&out_dir).join(dst);
|
let dst = Path::new(&out_dir).join(dst);
|
||||||
|
|
||||||
let mut registry = syntex::Registry::new();
|
serde_codegen::expand(&src, &dst).unwrap();
|
||||||
|
indoc::expand(&dst, &dst).unwrap();
|
||||||
serde_codegen::register(&mut registry);
|
|
||||||
indoc::register(&mut registry);
|
|
||||||
registry.expand("", &src, &dst).unwrap();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user