Cargo Features

wg = { version = "0.8.3", default-features = false, features = ["std", "triomphe", "parking_lot", "future", "tokio", "smol", "async-std"] }
default = parking_lot, std, triomphe

These default features are set whenever wg is added without default-features = false somewhere in the dependency tree.

std default

Enables optional triomphe, optional event-listener and optional futures-core and rt of optional tokio


Includes basic task execution capabilities

triomphe default

Enables triomphe

parking_lot default

Enables parking_lot

future async-std? smol? = agnostic-lite, event-listener, pin-project-lite

Affects wg::future

tokio = futures-core, pin-project-lite

Enables tokio, tokio of agnostic-lite

Affects wg::tokio

smol = future

Enables smol of agnostic-lite

async-std = future

Enables async-std of agnostic-lite

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.

event-listener future?
pin-project-lite future? tokio?
futures-core tokio?
agnostic-lite async-std? future? smol? tokio?