Cargo Features
[dependencies]
janus-kafka = { version = "0.4.1", default-features = false, features = ["tokio-rt", "serde1", "instrumented"] }
- default = tokio-rt
-
The
tokio-rt
feature is set by default wheneverjanus-kafka
is added without
somewhere in the dependency tree.default-features = false - tokio-rt default
-
Enables tokio of rdkafka ^0.25
- serde1 = serde
- instrumented = prometheus
-
Affects
janus-kafka::instrumented_publisher_ack_handler
,janus-kafka::instrumented_subscriber_ack_handler
…
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.
- prometheus instrumented?
-
Enables prometheus ^0.11
- serde serde1?