# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.64.0" name = "cancel-safe-futures" version = "0.1.5" exclude = [ ".cargo/**/*", ".github/**/*", "scripts/**/*", ] description = "Alternative futures adapters that are more cancellation-aware" documentation = "https://docs.rs/cancel-safe-futures" readme = "README.md" keywords = [ "futures", "async-cancellation", ] categories = [ "asynchronous", "no-std::no-alloc", ] license = "MIT OR Apache-2.0" repository = "https://github.com/oxidecomputer/cancel-safe-futures" resolver = "2" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg=doc_cfg"] [dependencies.futures] version = "0.3.28" optional = true [dependencies.futures-core] version = "0.3.28" default-features = false [dependencies.futures-sink] version = "0.3.28" default-features = false [dependencies.futures-util] version = "0.3.28" features = ["sink"] default-features = false [dependencies.pin-project-lite] version = "0.2.9" [dependencies.tokio] version = "1.28.2" features = ["sync"] optional = true [dev-dependencies.anyhow] version = "1.0.72" [dev-dependencies.async-stream] version = "0.3.5" [dev-dependencies.bytes] version = "1.4.0" [dev-dependencies.debug-ignore] version = "1.0.5" [dev-dependencies.tempfile] version = "3.6.0" [dev-dependencies.tokio] version = "1.28.2" features = [ "fs", "io-util", "macros", "rt", "rt-multi-thread", "sync", "time", ] [dev-dependencies.tokio-test] version = "0.4.0" [features] alloc = [ "futures-core/alloc", "futures-sink/alloc", "futures-util/alloc", ] default = [ "std", "macros", ] internal-docs = [ "dep:futures", "dep:tokio", "tokio?/io-util", "tokio?/macros", "tokio?/rt", ] macros = [] parking_lot = ["tokio?/parking_lot"] std = [ "alloc", "futures-core/std", "futures-sink/std", "futures-util/std", "dep:tokio", ]