Skip to content

Commit c862e66

Browse files
committed
Use crates.io version of futures-preview and patch it
This allows us to publish our library on crates.io, which wouldn't be possible with a git dependency. The library also compiles with the unpatched version since only the async-await binary use futures.
1 parent 3bb3b76 commit c862e66

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ default-features = false
4343
features = ["unicode"]
4444

4545
[dependencies.futures-preview]
46-
git = "https://github.com/phil-opp/futures-rs.git"
47-
branch = "alloc"
46+
version = "0.3.0-alpha"
4847
default-features = false
4948
features = ["alloc"]
5049

5150
[profile.release]
5251
codegen-units = 1 # better optimizations
5352
debug = true
5453
lto = true # better optimizations
54+
55+
[patch.crates-io.futures-preview]
56+
git = "https://github.com/phil-opp/futures-rs.git"
57+
branch = "alloc"

0 commit comments

Comments
 (0)