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 mio requirement from 0.6 to 0.7 #35

Open
wants to merge 1 commit into
base: rewrite
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Updates the requirements on mio to permit the latest version.

Release notes

Sourced from mio's releases.

Mio v0.7

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.

See the change log for details.

Changelog

Sourced from mio's changelog.

0.7.0

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 OSes.
  • Ready was removed and replaced with various is_* methods on Event. For example instead checking for readable readiness using Event::ready().is_readble(), you would call Event::is_readble().
  • 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.
... (truncated)
Commits
  • 5da8c49 Release v0.7.0
  • db87265 Remove outdated comment from Poll::poll
  • ad56f9c Update changelog to reflect all changes in 0.7 (#1278)
  • a4f1151 Don't ignore errors in Windows selector (#1277)
  • 9bbba42 Expand on documentation (#1264)
  • 10df3e1 A partial fix for issue #1191. Do not panic mio on sockstate error, instead k...
  • 653b6cf Accept IPv4 multicast addresses by reference
  • 0f4003d Add comments on how to run the examples
  • 9ac8bc7 Make Events' fmt::Debug implementation more useful
  • d394e2f Improve changelog wording
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Updates the requirements on [mio](https://github.com/tokio-rs/mio) to permit the latest version.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](tokio-rs/mio@v0.6.0...v0.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants