Cargo Features
[dependencies]
mediator = { version = "0.2.2", default-features = false, features = ["full", "impls", "interceptors", "async", "streams"] }
- default full? = impls
-
The
impls
feature is set by default whenevermediator
is added without
somewhere in the dependency tree.default-features = false - full = async, default, interceptors, streams
- impls default
-
Affects
mediator::impls
,mediator::impls_async
… - interceptors full? = async
- async full? interceptors? streams? = async-trait, tokio
-
Affects
event::AsyncEventHandler
,interceptor::AsyncInterceptor
,mediator::futures
,mediator::AsyncMediator
,request::AsyncRequestHandler
,interceptor::AsyncStreamInterceptor
,mediator::impls_async
… - streams full? = async, tokio-stream
-
Affects
futures::BoxStream
,futures::stream
,interceptor::StreamInterceptor
,mediator::Mediator.stream
,mediator::AsyncMediator.stream
,interceptor::AsyncStreamInterceptor
…
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.