[package] name = "cancel-safe-futures" version = "0.1.5" edition = "2021" license = "MIT OR Apache-2.0" description = "Alternative futures adapters that are more cancellation-aware" readme = "README.md" rust-version = "1.64.0" keywords = ["futures", "async-cancellation"] categories = ["asynchronous", "no-std::no-alloc"] repository = "https://github.com/oxidecomputer/cancel-safe-futures" documentation = "https://docs.rs/cancel-safe-futures" resolver = "2" exclude = [".cargo/**/*", ".github/**/*", "scripts/**/*"] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg=doc_cfg"] [dependencies] futures-core = { version = "0.3.28", default-features = false } futures-sink = { version = "0.3.28", default-features = false } futures-util = { version = "0.3.28", default-features = false, features = ["sink"] } tokio = { version = "1.28.2", features = ["sync"], optional = true } futures = { version = "0.3.28", optional = true } pin-project-lite = "0.2.9" [dev-dependencies] anyhow = "1.0.72" async-stream = "0.3.5" bytes = "1.4.0" debug-ignore = "1.0.5" tempfile = "3.6.0" tokio = { version = "1.28.2", features = ["fs", "io-util", "macros", "rt", "rt-multi-thread", "sync", "time"] } tokio-test = "0.4.0" [features] default = ["std", "macros"] std = ["alloc", "futures-core/std", "futures-sink/std", "futures-util/std", "dep:tokio"] alloc = ["futures-core/alloc", "futures-sink/alloc", "futures-util/alloc"] parking_lot = ["tokio?/parking_lot"] macros = [] # Internal-only feature, used for documentation and doctests. Not part of the public API. internal-docs = ["dep:futures", "dep:tokio", "tokio?/io-util", "tokio?/macros", "tokio?/rt"]