Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
google-api-proto
This library generated from googleapis/googleapis using tonic-build.
Overview
This library contains all the code generated from the googleapis/googleapis.
When using each product API, you must explicitly include it in your build using a feature flag.
For example, if you want to use Cloud Pub/Sub, write features = ["google-pubsub-v1"]
to Cargo.toml.
The feature name is the period of the package name of each proto file, replaced by a hyphen.
If you specify a package, it will automatically load the dependent packages and include them in the build.
It means that features = ["google-spanner-admin-database-v1"]
is the same as the code below:
In addition, multiple features can be specified. The list of available features can be found here.
Version matrices
google-api-proto | tonic | tonic-build |
---|---|---|
1.0.0 <= | 0.6.x | 0.6.x |
1.59.0 <= | 0.7.x | 0.7.x |
1.243.0 <= | 0.8.x | 0.8.x |
1.280.0 <= | 0.9.x | 0.9.x |
1.415.0 <= | 0.10.x | 0.10.x |
1.516.0 <= | 0.11.x | 0.11.x |
Example
The complete code can be found here.
Cargo.toml:
[]
# For runtime
= { = "1.33.0", = ["macros", "rt-multi-thread"] }
# For google authentication
= { = "1.0.0-alpha.5", = ["tonic"] }
# For gRPC
= { = "0.11.0", = ["tls", "tls-webpki-roots"] }
= "0.12.3"
= "0.12.3"
= { = "1", = ["google-spanner-admin-database-v1"] }
main.rs:
use env;
use ;
use GoogleAuthz;
use ;
async
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.