diff --git a/pbjson-types/build.rs b/pbjson-types/build.rs index 9ef2b31..4430fca 100644 --- a/pbjson-types/build.rs +++ b/pbjson-types/build.rs @@ -1,15 +1,13 @@ //! Compiles Protocol Buffers and FlatBuffers schema definitions into //! native Rust types. -use std::env; use std::path::PathBuf; type Error = Box; type Result = std::result::Result; fn main() -> Result<()> { - let root = PathBuf::from(env!("CARGO_MANIFEST_DIR")); - let descriptor_path = root.join("descriptors.bin"); + let descriptor_path: PathBuf = "descriptors.bin".into(); println!("cargo:rerun-if-changed={}", descriptor_path.display()); let mut config = prost_build::Config::new();