Cargo Features
[dependencies]
dsh_sdk = { version = "0.6.0", default-features = false, features = ["bootstrap", "kafka", "rdkafka-config", "schema-store", "graceful-shutdown", "management-api-token-fetcher", "protocol-token", "metrics", "dlq", "hyper-rustls", "http", "rustls", "rustls-pemfile"] }
- default = bootstrap, kafka, rdkafka-config
-
These default features are set whenever
dsh_sdk
is added without
somewhere in the dependency tree.default-features = false - bootstrap default dlq? kafka schema-store? = pem, rcgen, reqwest, serde_json
-
Enables rt-multi-thread of tokio
Affects
dsh_sdk::certificates
,dsh_sdk::datastream
,dsh_sdk::dsh
… - kafka default rdkafka-config = bootstrap
-
Affects
protocol_adapters::kafka_protocol
… - rdkafka-config default dlq? = kafka, rdkafka
-
Impl of config trait only
- schema-store = apache-avro, bootstrap, protofish, reqwest, serde_json
-
Affects
dsh_sdk::schema_store
… - graceful-shutdown dlq? = tokio, tokio-util
-
Affects
utils::graceful_shutdown
… - management-api-token-fetcher = reqwest
-
Affects
dsh_sdk::management_api
… - protocol-token = base64, reqwest, serde_json, sha2
-
Enables tokio
Affects
protocol_adapters::token
,error::ProtocolTokenError
… - metrics = bytes, http-body-util, hyper-util, tokio
-
Affects
utils::metrics
… - dlq = bootstrap, graceful-shutdown, rdkafka-config, tokio
-
Enables cmake-build, libz, ssl-vendored and tokio of rdkafka
Affects
utils::dlq
…
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.
- apache-avro schema-store?
- base64 protocol-token?
- bytes metrics?
- http-body-util metrics?
- hyper metrics?
- hyper-util metrics?
- hyper-rustls implicit feature
-
Enables hyper-rustls
hyper-rustls:
Rustls+hyper integration for pure rust HTTPS
- http implicit feature
-
Enables http
http:
A set of types for representing HTTP requests and responses
- rustls implicit feature
-
Enables rustls
rustls:
Rustls is a modern TLS library written in Rust
- rustls-pemfile implicit feature
-
Enables rustls-pemfile
rustls-pemfile:
Basic .pem file parser for keys and certificates
- pem bootstrap
- protofish schema-store?
- rcgen bootstrap
- reqwest bootstrap management-api-token-fetcher? protocol-token? schema-store?
- rdkafka dlq? rdkafka-config
- serde_json bootstrap protocol-token? schema-store?
- sha2 protocol-token?
- tokio bootstrap dlq? graceful-shutdown? metrics? protocol-token?
- tokio-util graceful-shutdown?