Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Update to Mio v1
Browse files Browse the repository at this point in the history
Bumps the MSRV to 1.71.

One breaking changes is the removal of mio::net::SocketAddr, replacing
it with std::os::unix::net::SocketAddr. The methods on the type should
be the same.

For some smaller OS, such as ESP-IDF and Hermit, it can now be compiled
without RUSTFLAGS.
Thomasdezeeuw committed Jun 14, 2024
1 parent 8480a18 commit 5800fb5
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tokio/Cargo.toml
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ pin-project-lite = "0.2.11"

# Everything else is optional...
bytes = { version = "1.0.0", optional = true }
mio = { version = "0.8.9", optional = true, default-features = false }
mio = { version = "1.0.0", optional = true, default-features = false, git = "https://github.com/tokio-rs/mio.git", rev = "beee1d15f8322b1c85a59834dedc0e54599adcb8" }
num_cpus = { version = "1.8.0", optional = true }
parking_lot = { version = "0.12.0", optional = true }

2 changes: 1 addition & 1 deletion tokio/src/net/unix/socketaddr.rs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ use std::fmt;
use std::path::Path;

/// An address associated with a Tokio Unix socket.
pub struct SocketAddr(pub(super) mio::net::SocketAddr);
pub struct SocketAddr(pub(super) std::os::unix::net::SocketAddr);

impl SocketAddr {
/// Returns `true` if the address is unnamed.

0 comments on commit 5800fb5

Please sign in to comment.