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.
gcloud-sdk for Rust
This library generated from Google API using tonic-build.
This is not official gcloud sdk from Google (and it doesn't exist for Rust at the moment of this page was updated).
Overview
This library contains all the code generated from the Google API.
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.
Example
The complete code can be found here.
use *;
use ;
async
Cargo.toml:
[]
= { = "0.10", = ["google-spanner-admin-database-v1"] }
= { = "0.7", = ["tls"] }
= "0.10"
= "0.10"
= { = "1.14", = ["rt-multi-thread", "time", "fs", "macros"] }
= "0.4"
Fork
The library is a fork of mechiru/googapis and mechiru/gouth to keep up with the updates and API proto descriptions from Google more frequently and simplify dependencies management.
Why not to contribute back?
- Different goals from googapis.
- This fork focuses on simplicity and provided authentication capabilities natively.
- Has direct dependencies to tokio runtime and chrono. Uses synchronisation primitives (such as Mutex) from tokio everywhere.
- Provides facade API for the caching async client implementation that hides complexity working with tokens and TLS.
- Different development cycles - the original development was updated less frequently than it was needed for me.
I'd be glad to contribute all of the changes back if author sees the same goals.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Authors
- mechiru - the original project
- Abdulla Abdurakhmanov - updated for recent deps, introduced caching client implementation, merged/refactorings with gouth.