google-cloud-googleapis 0.2.0

Google Cloud Platform rust client.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    if std::env::var("GEN").is_ok() {
        tonic_build::configure()
            .build_server(false)
            .out_dir("src") // you can change the generated code's location
            .compile(
                &[
                    "googleapis/google/spanner/v1/spanner.proto",
                    "googleapis/google/spanner/admin/database/v1/spanner_database_admin.proto",
                    "googleapis/google/spanner/admin/instance/v1/spanner_instance_admin.proto",
                ],
                &["googleapis"], // specify the root location to search proto dependencies
            )
            .unwrap();
    }
}