Skip to content

Commit a53c85f

Browse files
feat(libp2p/tcp): remove async_std from uds
Fixes #5935 Pull-Request: #6060.
1 parent ef24b6f commit a53c85f

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ libp2p-swarm-derive = { version = "=0.35.1", path = "swarm-derive" } # `libp2p-s
107107
libp2p-swarm-test = { version = "0.6.0", path = "swarm-test" }
108108
libp2p-tcp = { version = "0.44.0", path = "transports/tcp" }
109109
libp2p-tls = { version = "0.6.2", path = "transports/tls" }
110-
libp2p-uds = { version = "0.42.0", path = "transports/uds" }
110+
libp2p-uds = { version = "0.43.0", path = "transports/uds" }
111111
libp2p-upnp = { version = "0.4.1", path = "protocols/upnp" }
112112
libp2p-webrtc = { version = "0.9.0-alpha", path = "transports/webrtc" }
113113
libp2p-webrtc-utils = { version = "0.4.0", path = "misc/webrtc-utils" }

transports/uds/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.43.0
2+
3+
- Remove `async-std` support.
4+
See [PR 6060](https://github.com/libp2p/rust-libp2p/pull/6060)
5+
16
## 0.42.0
27

38
<!-- Update to libp2p-core v0.43.0 -->

transports/uds/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ name = "libp2p-uds"
33
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Unix domain sockets transport for libp2p"
6-
version = "0.42.0"
6+
version = "0.43.0"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"
1010
keywords = ["peer-to-peer", "libp2p", "networking"]
1111
categories = ["network-programming", "asynchronous"]
1212

1313
[dependencies]
14-
async-std = { version = "1.6.2", optional = true }
1514
libp2p-core = { workspace = true }
1615
futures = { workspace = true }
1716
tokio = { workspace = true, default-features = false, features = ["net"], optional = true }

transports/uds/src/lib.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@
3131
//! The `UdsConfig` structs implements the `Transport` trait of the `core` library. See the
3232
//! documentation of `core` and of libp2p in general to learn how to use the `Transport` trait.
3333
34-
#![cfg(all(
35-
unix,
36-
not(target_os = "emscripten"),
37-
any(feature = "tokio", feature = "async-std")
38-
))]
34+
#![cfg(all(unix, not(target_os = "emscripten"), feature = "tokio"))]
3935
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
4036

4137
use std::{
@@ -205,13 +201,6 @@ macro_rules! codegen {
205201
};
206202
}
207203

208-
#[cfg(feature = "async-std")]
209-
codegen!(
210-
"async-std",
211-
UdsConfig,
212-
|addr| async move { async_std::os::unix::net::UnixListener::bind(&addr).await },
213-
async_std::os::unix::net::UnixStream,
214-
);
215204
#[cfg(feature = "tokio")]
216205
codegen!(
217206
"tokio",

0 commit comments

Comments
 (0)