Skip to content

chore(tcp): remove async_std support #5955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d9d98ae
deprecate async_std support in TCP crate
gitToki Mar 25, 2025
d631545
tokio not default
gitToki Mar 25, 2025
1beb916
Merge branch 'master' into TCP
gitToki Mar 25, 2025
5147a19
Merge branch 'master' into TCP
gitToki Mar 26, 2025
e3a4271
Merge branch 'master' into TCP
jxs Apr 3, 2025
bbe06f2
Merge branch 'libp2p:master' into TCP
gitToki Apr 13, 2025
8218394
update tcp crate
Apr 13, 2025
f8e5843
update tcp crate
Apr 13, 2025
3bf2111
update lib rs
Apr 13, 2025
68856ee
re-update lib rs
Apr 13, 2025
314b972
update TCP crate
Apr 29, 2025
096b242
async ref in websocket toml
Apr 29, 2025
bee4d48
Merge branch 'master' into TCP
gitToki Jun 4, 2025
822c060
update test / cargo
Jun 4, 2025
0c7951e
changelog
Jun 4, 2025
09f8ede
update changelog
Jun 4, 2025
bb8d7fa
update changelog / swarm test version / test
Jun 4, 2025
1f6883c
fmt
Jun 4, 2025
79aec61
update test - swarm - changelog
Jun 5, 2025
2c2a167
update cargo websocket / fmt
Jun 5, 2025
61a1138
remove version bump and remove curly brackets
Jun 7, 2025
4b38073
undo websocket
Jun 7, 2025
8a9d2d2
libp2p websocket v
Jun 7, 2025
8f89e1e
Merge branch 'master' into TCP
gitToki Jun 10, 2025
8e79761
clippy
gitToki Jun 10, 2025
d01ed8b
revert dcutr version bump
gitToki Jun 10, 2025
0331be8
new ephemeral / update changelog
gitToki Jun 13, 2025
d5478e5
Merge branch 'master' of github.com:libp2p/rust-libp2p into TCP
jxs Jun 24, 2025
83029e4
update Cargo.lock
jxs Jun 24, 2025
16b8d21
address merge leftovers
jxs Jun 24, 2025
6db1a19
address merge leftovers
jxs Jun 24, 2025
110c1a3
address merge leftovers
jxs Jun 24, 2025
c0f1be7
do not set tokio as default
jxs Jun 24, 2025
e55318b
address merge leftovers
jxs Jun 24, 2025
4dfe37e
address merge leftovers
jxs Jun 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions transports/tcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ tracing = { workspace = true }

[features]
tokio = ["dep:tokio", "if-watch/tokio"]
# async-io feature is deprecated and will be removed in a future release
async-io = ["dep:async-io", "if-watch/smol"]

[dev-dependencies]
Expand Down
5 changes: 5 additions & 0 deletions transports/tcp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
//! This crate provides a [`async_io::Transport`] and [`tokio::Transport`], depending on
//! the enabled features, which implement the [`libp2p_core::Transport`] trait for use as a
//! transport with `libp2p-core` or `libp2p-swarm`.
//!
//! This crate provides a [`async_io::Transport`] (deprecated) and [`tokio::Transport`],
//! which implement the [`libp2p_core::Transport`] trait for use as a
//! transport with `libp2p-core` or `libp2p-swarm`.
//!

#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

Expand Down
8 changes: 8 additions & 0 deletions transports/tcp/src/provider/async_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,16 @@ use super::{Incoming, Provider};
/// println!("Listening on {addr}");
/// # }
/// ```
#[deprecated(
since = "0.43.0",
note = "async_std has been discontinued. Please use the tokio feature instead."
)]
pub type Transport = crate::Transport<Tcp>;

#[deprecated(
since = "0.43.0",
note = "async_std has been discontinued. Please use the tokio feature instead."
)]
#[derive(Copy, Clone)]
#[doc(hidden)]
pub enum Tcp {}
Expand Down