update rustix to 1.0 (#982)

This commit is contained in:
Wind 2025-04-03 12:34:41 +08:00 committed by GitHub
parent 9824270d57
commit eb3be0fe1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ filedescriptor = { version = "0.8", optional = true }
# compatibility.
libc = { version = "0.2", default-features = false, optional = true }
mio = { version = "1.0", features = ["os-poll"], optional = true }
rustix = { version = "0.38.36", default-features = false, features = ["std", "stdio", "termios"] }
rustix = { version = "1", default-features = false, features = ["std", "stdio", "termios"] }
signal-hook = { version = "0.3.17", optional = true }
signal-hook-mio = { version = "0.2.4", features = ["support-v1_0"], optional = true }

View File

@ -71,7 +71,7 @@ impl UnixInternalEventSource {
#[cfg(feature = "libc")]
pipe::register(libc::SIGWINCH, sender)?;
#[cfg(not(feature = "libc"))]
pipe::register(rustix::process::Signal::Winch as i32, sender)?;
pipe::register(rustix::process::Signal::WINCH.as_raw(), sender)?;
receiver
},
#[cfg(feature = "event-stream")]