Cargo Features

[dependencies]
cancel-safe-futures = { version = "0.1.5", default-features = false, features = ["std", "alloc", "parking_lot", "macros", "internal-docs"] }
default = macros, std

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

std default = alloc

Enables tokio, std of futures-core, futures-sink, and futures-util

Affects cancel-safe-futures::coop_cancel

alloc std

Enables alloc of futures-core, futures-sink, and futures-util

Affects try_stream::TryStreamExt.for_each_concurrent_then_try

parking_lot

Enables parking_lot of optional tokio

macros default
internal-docs

Internal-only feature, used for documentation and doctests. Not part of the public API.

Enables futures, io-util, macros and rt of tokio