arcgis 0.1.0

Type-safe Rust SDK for the ArcGIS REST API with compile-time guarantees
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Build script for generating Rust code from protocol buffer schemas.

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Generate Rust code from the ArcGIS FeatureCollection proto schema
    prost_build::Config::new()
        .out_dir("src/services/feature/pbf")
        .compile_protos(&["proto/FeatureCollection.proto"], &["proto/"])?;

    // Tell Cargo to rerun this build script if the proto file changes
    println!("cargo:rerun-if-changed=proto/FeatureCollection.proto");

    Ok(())
}