Fix mio and signalhook broken build (#907)

* Upgrade to mio 1.0
This commit is contained in:
Timon 2024-08-01 20:30:12 +02:00 committed by GitHub
parent 8d1f0cc603
commit 4712ff5619
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,15 @@
# Unreleased
# Version 0.28.1
## Fixed 🐛
- Fix broken build on linux when using `use-dev-tty` with (#906)
## Breaking ⚠️
- Fix desync with mio and signalhook between repo and published crate. (upgrade to mio 1.0)
# Version 0.28
## Added ⭐

View File

@ -82,9 +82,9 @@ rustix = { version = "0.38.34", default-features = false, features = [
] }
signal-hook = { version = "0.3.17", optional = true }
filedescriptor = { version = "0.8", optional = true }
mio = { version = "0.8", features = ["os-poll"], optional = true }
signal-hook-mio = { version = "0.2.3", features = [
"support-v0_8",
mio = { version = "1.0", features = ["os-poll"], optional = true }
signal-hook-mio = { version = "0.2.4", features = [
"support-v1_0",
], optional = true }
#

View File

@ -1,7 +1,7 @@
use std::{collections::VecDeque, io, time::Duration};
use mio::{unix::SourceFd, Events, Interest, Poll, Token};
use signal_hook_mio::v0_8::Signals;
use signal_hook_mio::v1_0::Signals;
#[cfg(feature = "event-stream")]
use crate::event::sys::Waker;