-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
45 lines (40 loc) · 1.62 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[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"]