build.rs 329 B

1234567891011121314
  1. extern crate protobuf_macros;
  2. use std::env;
  3. use std::path::PathBuf;
  4. fn main() {
  5. let out = PathBuf::from(env::var("OUT_DIR").unwrap());
  6. protobuf_macros::expand("src/lib.in.rs", &out.join("lib.rs")).unwrap();
  7. println!("cargo:rerun-if-changed=src/lib.in.rs");
  8. println!("cargo:rerun-if-changed=src/spirc.rs");
  9. }