From 4712ff561985e505067983de02fb48f7f5b8eed1 Mon Sep 17 00:00:00 2001 From: Timon Date: Thu, 1 Aug 2024 20:30:12 +0200 Subject: [PATCH] Fix mio and signalhook broken build (#907) * Upgrade to mio 1.0 --- CHANGELOG.md | 10 ++++++++++ Cargo.toml | 6 +++--- src/event/source/unix/mio.rs | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6e5b500..6a2a2f05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ⭐ diff --git a/Cargo.toml b/Cargo.toml index c1196b28..de168ed6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 } # diff --git a/src/event/source/unix/mio.rs b/src/event/source/unix/mio.rs index 0368e61b..6d19e0c5 100644 --- a/src/event/source/unix/mio.rs +++ b/src/event/source/unix/mio.rs @@ -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;