Skip to content

Commit 4712ff5

Browse files
authored
Fix mio and signalhook broken build (#907)
* Upgrade to mio 1.0
1 parent 8d1f0cc commit 4712ff5

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Unreleased
22

3+
# Version 0.28.1
4+
5+
## Fixed 🐛
6+
7+
- Fix broken build on linux when using `use-dev-tty` with (#906)
8+
9+
## Breaking ⚠️
10+
11+
- Fix desync with mio and signalhook between repo and published crate. (upgrade to mio 1.0)
12+
313
# Version 0.28
414

515
## Added ⭐

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ rustix = { version = "0.38.34", default-features = false, features = [
8282
] }
8383
signal-hook = { version = "0.3.17", optional = true }
8484
filedescriptor = { version = "0.8", optional = true }
85-
mio = { version = "0.8", features = ["os-poll"], optional = true }
86-
signal-hook-mio = { version = "0.2.3", features = [
87-
"support-v0_8",
85+
mio = { version = "1.0", features = ["os-poll"], optional = true }
86+
signal-hook-mio = { version = "0.2.4", features = [
87+
"support-v1_0",
8888
], optional = true }
8989

9090
#

src/event/source/unix/mio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{collections::VecDeque, io, time::Duration};
22

33
use mio::{unix::SourceFd, Events, Interest, Poll, Token};
4-
use signal_hook_mio::v0_8::Signals;
4+
use signal_hook_mio::v1_0::Signals;
55

66
#[cfg(feature = "event-stream")]
77
use crate::event::sys::Waker;

0 commit comments

Comments
 (0)