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 whenever mediator is added without default-features = false somewhere in the dependency tree.

full = async, default, interceptors, streams
impls default

Affects mediator::impls, mediator::impls_async

interceptors full? = async
async full? interceptors? streams? = async-trait, tokio

Enables sync of 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.

tokio-stream streams?
tokio async?
async-trait async?