aboutsummaryrefslogtreecommitdiff
path: root/serde-tests/build.rs
blob: 1cc5062fee2dd0012f166bbac80b0950c03541c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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("test.rs.in");
    let dst = Path::new(&out_dir).join("test.rs");

    serde_codegen::expand(&src, &dst).unwrap();
}