Cargo Features

[dependencies]
hds_console-subscriber = { version = "0.2.3", default-features = false, features = ["parking_lot", "env-filter", "grpc-web"] }
default = env-filter

The env-filter feature is set by default whenever hds_console-subscriber is added without default-features = false somewhere in the dependency tree.

parking_lot = parking_lot_crate

Enables parking_lot of tracing-subscriber

env-filter default

Enables env-filter of tracing-subscriber

grpc-web = tonic-web

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.

parking_lot_crate parking_lot?

Enables parking_lot

The parking_lot dependency is renamed, because we want our parking_lot feature to also enable tracing-subscriber's parking_lot feature flag.

tonic-web grpc-web?

Enables tonic-web ^0.10.2

Only for the web feature: