536e78a146
Nobody noticed these did not compile for 3 months, so I am guessing nobody cares. The JSON benchmarks at https://github.com/serde-rs/json-benchmark are much more relevant.
12 lines
274 B
Rust
12 lines
274 B
Rust
extern crate serde_codegen;
|
|
|
|
use std::env;
|
|
use std::path::Path;
|
|
|
|
fn main() {
|
|
let out_dir = env::var_os("OUT_DIR").unwrap();
|
|
let src = Path::new("tests/test.rs.in");
|
|
let dst = Path::new(&out_dir).join("test.rs");
|
|
serde_codegen::expand(&src, &dst).unwrap();
|
|
}
|