A Rust library for reading the OpenStreetMap PBF file format (*.osm.pbf).

123456789101112131415
  1. extern crate protoc_rust;
  2. fn main() {
  3. let proto_files = ["src/proto/fileformat.proto", "src/proto/osmformat.proto"];
  4. for path in &proto_files {
  5. println!("cargo:rerun-if-changed={}", path);
  6. }
  7. protoc_rust::run(protoc_rust::Args {
  8. out_dir: "src/proto",
  9. input: &proto_files,
  10. includes: &[],
  11. }).expect("protoc");
  12. }