Cargo Features

[dependencies]
ya-gcp = { version = "0.11.3", default-features = false, features = ["rustls-native-certs", "webpki-roots", "grpc", "bigtable", "pubsub", "storage", "emulators"] }
default = rustls-native-certs

The rustls-native-certs feature is set by default whenever ya-gcp is added without default-features = false somewhere in the dependency tree.

rustls-native-certs default

Enables rustls-native-certs ^0.6.3 and tls-roots of optional tonic ^0.10.2

tonic:

Deprecated. Please use tls-native-roots instead.

webpki-roots

Enables webpki-roots ^0.25.3, tls-webpki-roots of optional tonic ^0.10.2

grpc bigtable? pubsub? = derive_more, prost, prost-types, tonic, tower

an internal feature used by services running grpc

Affects auth::grpc, ya-gcp::grpc

bigtable = async-stream, grpc, prost, tower

Affects ya-gcp::bigtable

pubsub = async-stream, grpc, pin-project, uuid

Enables sync of tokio

Affects ya-gcp::pubsub

storage = tame-gcs, tower

Affects ya-gcp::storage

emulators = tempdir

whether to include service emulator implementations. useful for testing

Enables process of tokio

Affects bigtable::emulator, pubsub::emulator

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

async-stream bigtable? pubsub?
derive_more grpc?

Enables derive_more ^0.99

pin-project pubsub?
prost bigtable? grpc?

Enables prost ^0.12.3

prost-types grpc?

Enables prost-types ^0.12.3

tame-gcs storage?

Enables tame-gcs ^0.10.0

tempdir emulators?
tonic grpc?

Enables tonic ^0.10.2

tower bigtable? grpc? storage?

Enables tower ^0.4

uuid pubsub?