Cargo Features

StopToken has no features set by default.

[dependencies]
stop-token = { version = "0.7.0", features = ["all", "docs", "async-global-executor"] }
all = async-io, async-std, tokio
docs = async-io

Affects stop-token::async_io

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-global-executor implicit feature

Enables async-global-executor

async-global-executor:

A global executor built on top of async-executor and async-io

async-io all? docs?

Enables async-io ^1.6.0

Affects stop-token::async_io

async-std all?
tokio all?

Affects stop-token::tokio