Skip to content

Commit

Permalink
Update to Mio v1
Browse files Browse the repository at this point in the history
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 Jul 23, 2024
1 parent 6e845b7 commit e8f9894
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 @@ -92,7 +92,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 }
parking_lot = { version = "0.12.0", optional = true }

[target.'cfg(not(target_family = "wasm"))'.dependencies]
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 e8f9894

Please sign in to comment.