Cargo Features
[dependencies]
mecomp-core = { version = "0.1.1", default-features = false, features = ["rpc", "otel_tracing", "audio", "flame", "verbose_tracing", "mock_playback"] }
- default = audio
-
The
audio
feature is set by default whenevermecomp-core
is added without
somewhere in the dependency tree.default-features = false - rpc = tarpc
-
Affects
mecomp-core::rpc
… - otel_tracing = opentelemetry, opentelemetry-otlp, opentelemetry-semantic-conventions, opentelemetry_sdk, tracing-opentelemetry
- audio default
-
Enables rand, rodio ^0.19.0, and tokio
Affects
mecomp-core::audio
… - flame = tracing-flame
- verbose_tracing
- mock_playback
-
for testing purposes, prevents actual playback of audio which is useful in CI environments where audio playback is not possible
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.
- tarpc rpc?
-
Enables tarpc ^0.34.0
- tracing-opentelemetry otel_tracing?
-
Enables tracing-opentelemetry ^0.25.0
- tracing-flame flame?
- opentelemetry otel_tracing?
-
Enables opentelemetry ^0.24.0
- opentelemetry_sdk otel_tracing?
-
Enables opentelemetry_sdk ^0.24.1
- opentelemetry-otlp otel_tracing?
-
Enables opentelemetry-otlp ^0.17.0
- opentelemetry-semantic-conventions otel_tracing?