Skip to content
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

Update Rust crate mio to 0.8.0 #24

Closed
wants to merge 1 commit into from
Closed

Update Rust crate mio to 0.8.0 #24

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 5, 2025

This PR contains the following updates:

Package Type Update Change
mio dependencies minor 0.6.14 -> 0.8.0

Release Notes

tokio-rs/mio (mio)

v0.8.11

Compare Source

v0.8.10

Compare Source

Added

v0.8.9

Compare Source

Added

Fixed

v0.8.8

Compare Source

Fixed

v0.8.7

Compare Source

Added

Changed

Fixed

v0.8.6

Compare Source

Added

Changed

Fixed

v0.8.5

Compare Source

Changed

Fixed

v0.8.4

Compare Source

Added

v0.8.3

Compare Source

Changed

Fixed

v0.8.2

Compare Source

Added

  • Experimental support for Redox.

v0.8.1

Compare Source

v0.8.0

Compare Source

Removed

  • Deprecated features (tokio-rs/mio@105f8f2):
    • extra-docs (always enabled)
    • tcp (replaced with "net" feature).
    • udp (replaced with "net" feature).
    • uds (replaced with "net" feature).
    • pipe (replaced with "os-ext" feature).
    • os-util (replaced with "os-ext" feature).
  • TcpSocket type
    (tokio-rs/mio@02e9be4).
    The socket2 crate provides all the functionality and more.
  • Support for Solaris, it never really worked anyway
    https://github.com/tokio-rs/mio/pull/15281528).

Changes

Added

v0.7.14

Compare Source

Fixes

  • Remove use unsound internal macro (#​1519).

Added

  • sys::unix::SocketAddr::as_abstract_namespace() (#​1520).

v0.7.13

Compare Source

Fixes

v0.7.12

Compare Source

Fixes

v0.7.11

Compare Source

Fixes

v0.7.10

Compare Source

Fixes

v0.7.9

Compare Source

Fixes

v0.7.8

Compare Source

Fixes

v0.7.7

Compare Source

Added

Fixes

v0.7.6

Compare Source

Added

Deprecated

Fixes

  • Incorrect assumption of the layout of std::net::SocketAddr. Previously Mio
    would assume that SocketAddrV{4,6} had the same layout as
    libc::sockaddr_in(6), however this is not guaranteed by the standard
    library.
    (tokio-rs/mio@152e075).
  • Also bumped the miow dependency to version 0.3.6 to solve the same problem as
    above.

v0.7.5

Compare Source

Added

v0.7.4

Compare Source

Fixes

Added

v0.7.3

Compare Source

Added

v0.7.2

Compare Source

Added

v0.7.1

Compare Source

Fixes

  • Remove use unsound internal macro (#​1519).

Added

  • sys::unix::SocketAddr::as_abstract_namespace() (#​1520).

v0.7.0

Compare Source

Version 0.7 of Mio contains various major changes compared to version 0.6.
Overall a large number of API changes have been made to reduce the complexity of
the implementation and remove overhead where possible.

Please refer to the blog post about
0.7-alpha.1
for additional
information.

Added

  • Interest structure that replaces Ready in registering event sources.
  • Registry structure that separates the registering and polling functionality.
  • Waker structure that allows another thread to wake a thread polling Poll.
  • Unix Domain Socket (UDS) types: UnixDatagram, UnixListener and
    UnixStream.

Removed

  • All code deprecated in 0.6 was removed in 0.7.
  • Support for Fuchsia was removed as the code was unmaintained.
  • Support for Bitrig was removed, rustc dropped support for it also.
  • UnixReady was merged into Ready.
  • Custom user-space readiness queue was removed, this includes the public
    Registration and SetReadiness types.
  • PollOpt was removed and all registrations use edge-triggers. See the upgrade
    guide on how to process event using edge-triggers.
  • The network types (types in the net module) now support only the same API as
    found in the standard library, various methods on the types were removed.
  • TcpStream now supports vectored I/O.
  • Poll::poll_interruptible was removed. Instead Poll::poll will now return
    an error if one occurs.
  • From<usize> is removed from Token, the internal field is still public, so
    Token(my_token) can still be used.

Changed

  • Various documentation improvements were made around correct usage of Poll
    and registered event sources. It is recommended to reread the documentation of
    at least event::Source and Poll.
  • Mio now uses Rust 2018 and rustfmt for all code.
  • Event was changed to be a wrapper around the OS event. This means it can be
    significantly larger on some OSs.
  • Ready was removed and replaced with various is_* methods on Event. For
    example instead checking for readable readiness using
    Event::ready().is_readable(), you would call Event::is_readable().
  • Ready::is_hup was removed in favour of Event::is_read_closed and
    Event::is_write_closed.
  • The Iterator implementation of Events was changed to return &Event.
  • Evented was renamed to event::Source and now takes mutable reference to
    the source.
  • Minimum supported Rust version was increased to 1.39.
  • By default Mio now uses a shim implementation. To enable the full
    implementation, that uses the OS, enable the os-oll feature. To enable the
    network types use tcp, udp and/or uds. For more documentation on the
    features see the feature module in the API documentation (requires the
    extra-docs feature).
  • The entire Windows implementation was rewritten.
  • Various optimisation were made to reduce the number of system calls in
    creating and using sockets, e.g. making use of accept4(2).
  • The fmt::Debug implementation of Events is now actually useful as it
    prints all Events.

v0.6.23

Compare Source

Changed
  • MSRV: Increased the MSRV from 1.18.0 (Jun 8, 2017) to 1.31.0 (Dec 6,
    2018)
    (tokio-rs/mio@4879e0d).
Fixed
  • Work around Linux kernel < 2.6.37 bug on 32-bits making timeouts longer then
    ~30 minutes effectively infinite
    (tokio-rs/mio@e7cba59).
  • Update miow and net2 depedencies to get rid of invalid memory layout assumption
    (tokio-rs/mio@13f02ac).

v0.6.22

Compare Source

Added
  • Add support for illumos target (#​1294)

v0.6.21

Compare Source

Fixed
  • remove = dependency on cfg-if.

v0.6.20

Compare Source

Fixed
  • Use default IOCP concurrency value (#​1161).
  • setting FD_CLOEXEC in pipe (#​1095).

v0.6.19

Compare Source

Fixed
  • Do not trigger HUP events on kqueue platforms (#​958).

v0.6.18

Compare Source

Fixed
  • Fix compilation on kqueue platforms with 32bit C long (#​948).

v0.6.17

Compare Source

Fixed
  • Don't report RDHUP as HUP (#​939)
  • Fix lazycell related compilation issues.
  • Fix EPOLLPRI conflicting with READABLE
  • Abort process on ref count overflows
Added
  • Define PRI on all targets

v0.6.16

Compare Source

  • Add EPOLLPRI readiness to UnixReady on supported platforms (#​867)
  • Reduce spurious awaken calls (#​875)

v0.6.15

Compare Source

  • Implement Evented for containers (#​840).
  • Fix android-aarch64 build (#​850).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@dimbleby dimbleby closed this Jan 5, 2025
@dimbleby dimbleby deleted the renovate/mio-0.x branch January 5, 2025 22:16
Copy link
Author

renovate bot commented Jan 5, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.8.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant