Cargo Features

[dependencies]
riptun = { version = "0.1.4", default-features = false, features = ["mio-impl", "async-std-impl", "tokio-impl", "async-std-example", "tokio-example", "smol-example"] }
default = async-std-impl, mio-impl, tokio-impl

Default feature set is to enable all async capabilities.

mio-impl default = mio

Enable/disable individual async implementations.

async-std-impl default async-std-example? smol-example? = async-io, futures-io, futures-util
tokio-impl default tokio-example? = futures-io, futures-util, tokio
async-std-example = async-std-impl

Strictly for examples.

Enables attributes of async-std

Example only dependencies, these are never included in the final library builds.

tokio-example = tokio-impl

Enables macros, rt and rt-multi-thread of tokio

smol-example = async-std-impl, smol

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.

async-io async-std-impl

Enables async-io ^1.0.1

Async specific dependencies, see the features bellow to determine when they are included.

futures-util async-std-impl tokio-impl
futures-io async-std-impl tokio-impl
mio mio-impl

Enables mio ^0.7

tokio tokio-example? tokio-impl
async-std async-std-example?
smol smol-example?

Enables smol ^1.2.5