Skip to content

Commit

Permalink
Update to Mio v1
Browse files Browse the repository at this point in the history
Bumps the MSRV to 1.70.

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.
  • Loading branch information
Thomasdezeeuw committed Jun 14, 2024
1 parent c4c0b6c commit bafbcee
Show file tree
Hide file tree
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
Expand Up @@ -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 }
num_cpus = { version = "1.8.0", optional = true }
parking_lot = { version = "0.12.0", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion tokio/src/net/unix/socketaddr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bafbcee

Please sign in to comment.