Skip to content

Commit 93d79f7

Browse files
committed
Add a futures-v0_3 feature flag that gates access to the Stream implementation
1 parent fb51abd commit 93d79f7

File tree

4 files changed

+83
-161
lines changed

4 files changed

+83
-161
lines changed

Cargo.lock

+39-133
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

signal-hook-tokio/Cargo.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ edition = "2018"
1919
travis-ci = { repository = "vorner/signal-hook" }
2020
maintenance = { status = "actively-developed" }
2121

22+
[features]
23+
futures-v0_3 = ["futures-core-0_3"]
24+
2225
[dependencies]
2326
libc = "~0.2"
2427
signal-hook = { version = "~0.3", path = ".." }
25-
futures = "~0.3"
28+
futures-core-0_3 = { package = "futures-core", version = "~0.3", optional = true }
2629
tokio = { version = "~1", features = ["net"] }
30+
cfg-if = "~1"
2731

2832
[dev-dependencies]
2933
tokio = { package = "tokio", version = "~1", features = ["full"] }

0 commit comments

Comments
 (0)