Files
google-apis-rs/gen/mapsengine1/src/build.rs
Sebastian Thiel 3484fecf9c chore(code-update):added latest version of api+cli
APIs have additional files thanks to the build-script
requirement.
CLI has just seen minor changes though, making it
usable with a stable compiler.
2015-06-19 13:27:40 +02:00

17 lines
405 B
Rust

extern crate syntex;
extern crate serde_codegen;
use std::env;
use std::path::Path;
pub fn main() {
let out_dir = env::var_os("OUT_DIR").unwrap();
let src = Path::new("src/lib.rs.in");
let dst = Path::new(&out_dir).join("lib.rs");
let mut registry = syntex::Registry::new();
serde_codegen::register(&mut registry);
registry.expand("google-mapsengine1", &src, &dst).unwrap();
}