Skip to content

Commit

Permalink
fix(relay): remove unconditional async-std dependency
Browse files Browse the repository at this point in the history
`libp2p-relay` crate specifies the `libp2p-swarm/async-std` feature, which causes an `async-std` dependency to always be introduced.

Pull-Request: libp2p#4283.
  • Loading branch information
quininer authored and hanabi1224 committed Aug 3, 2023
1 parent 065efb1 commit 2a8e371
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions protocols/relay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
## 0.16.1 - unreleased

- Export `RateLimiter` type.
- Export `RateLimiter` type.
See [PR 3742].

- Add functions to access data within `Limit`.
See [PR 4162].

- Remove unconditional `async-std` dependency.
See [PR 4283].

[PR 3742]: https://github.com/libp2p/rust-libp2p/pull/3742
[PR 4162]: https://github.com/libp2p/rust-libp2p/pull/4162
[PR 4283]: https://github.com/libp2p/rust-libp2p/pull/4283

## 0.16.0
## 0.16.0

- Raise MSRV to 1.65.
See [PR 3715].
Expand Down
4 changes: 2 additions & 2 deletions protocols/relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ futures = "0.3.28"
futures-timer = "3"
instant = "0.1.12"
libp2p-core = { workspace = true }
libp2p-swarm = { workspace = true, features = ["async-std"] }
libp2p-swarm = { workspace = true }
libp2p-identity = { workspace = true }
log = "0.4"
quick-protobuf = "0.8"
Expand All @@ -32,7 +32,7 @@ void = "1"
env_logger = "0.10.0"
libp2p-ping = { workspace = true }
libp2p-plaintext = { workspace = true }
libp2p-swarm = { workspace = true, features = ["macros"] }
libp2p-swarm = { workspace = true, features = ["macros", "async-std"] }
libp2p-yamux = { workspace = true }
quickcheck = { workspace = true }

Expand Down

0 comments on commit 2a8e371

Please sign in to comment.