Cargo Features
[dependencies]
google-cloud-auth = { version = "1.9.0", default-features = false, features = ["idtoken", "default-idtoken-backend", "default-rustls-provider", "jsonwebtoken"] }
- default = default-idtoken-backend, default-rustls-provider
-
These default features are set whenever
google-cloud-authis added withoutsomewhere in the dependency tree.default-features = false - idtoken = jsonwebtoken
-
The
idtokenfeature enables support to create and validate OIDC ID Tokens. See the create top-level documentation for more information.Enables jsonwebtoken
Affects
internal::jwk_client,credentials::idtoken… - default-idtoken-backend default
-
By default this crate enables the
aws_lc_rsbackend. Applications can linkgoogle-cloud-authwithdefault-features = false, features = ["idtoken"] and then directly configure thejsonwebtokenfeatures to select therust_crypto` backend.Enables aws_lc_rs of optional jsonwebtoken and aws-lc-rs
We do not use this directly, but without it the minimal-versions build breaks. See: https://github.com/Keats/jsonwebtoken/pull/481
- default-rustls-provider default
-
Enabled by default. Use the default rustls crypto provider ([aws-lc-rs]) for TLS and authentication. Applications with specific requirements for cryptography (such as exclusively using the [ring] crate) should disable this default and call
rustls::CryptoProvider::install_default().Enables default-tls of reqwest, aws_lc_rs of rustls
- jsonwebtoken idtoken?
-
Do not use, this was a mistake in the 1.3 release. We accidentally introduced this feature. The intent was to only introduce
idtoken.Enables jsonwebtoken