mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 19:58:03 +01:00
Remove mio
This commit is contained in:
14
Cargo.lock
generated
14
Cargo.lock
generated
@@ -89,14 +89,12 @@ dependencies = [
|
|||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
"config",
|
"config",
|
||||||
"mio",
|
|
||||||
"nix",
|
"nix",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"rustyline",
|
"rustyline",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"signal-hook",
|
"signal-hook",
|
||||||
"signal-hook-mio",
|
|
||||||
"termion",
|
"termion",
|
||||||
"uuid",
|
"uuid",
|
||||||
]
|
]
|
||||||
@@ -666,7 +664,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2"
|
checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"log",
|
|
||||||
"wasi",
|
"wasi",
|
||||||
"windows-sys 0.48.0",
|
"windows-sys 0.48.0",
|
||||||
]
|
]
|
||||||
@@ -1020,17 +1017,6 @@ dependencies = [
|
|||||||
"signal-hook-registry",
|
"signal-hook-registry",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "signal-hook-mio"
|
|
||||||
version = "0.2.3"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af"
|
|
||||||
dependencies = [
|
|
||||||
"libc",
|
|
||||||
"mio",
|
|
||||||
"signal-hook",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "signal-hook-registry"
|
name = "signal-hook-registry"
|
||||||
version = "1.4.1"
|
version = "1.4.1"
|
||||||
|
|||||||
@@ -13,12 +13,10 @@ license = "GPL-3.0"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.75"
|
anyhow = "1.0.75"
|
||||||
nix = { version = "0.27", features = [ "fs", "term", "process", "signal" ] }
|
nix = { version = "0.27", features = [ "fs", "term", "process", "signal" ] }
|
||||||
mio = { version ="0.8", features = ["os-poll", "os-ext"] }
|
|
||||||
termion = "2.0.1"
|
termion = "2.0.1"
|
||||||
serde = { version = "1.0.189", features = ["derive"] }
|
serde = { version = "1.0.189", features = ["derive"] }
|
||||||
serde_json = "1.0.107"
|
serde_json = "1.0.107"
|
||||||
clap = { version = "4.4.7", features = ["derive"] }
|
clap = { version = "4.4.7", features = ["derive"] }
|
||||||
signal-hook-mio = { version = "0.2.3", features = ["support-v0_8"] }
|
|
||||||
signal-hook = "0.3.17"
|
signal-hook = "0.3.17"
|
||||||
uuid = { version = "1.6.1", features = ["v4"] }
|
uuid = { version = "1.6.1", features = ["v4"] }
|
||||||
reqwest = { version = "0.11.23", default-features = false, features = ["blocking", "rustls-tls", "multipart", "gzip", "json"] }
|
reqwest = { version = "0.11.23", default-features = false, features = ["blocking", "rustls-tls", "multipart", "gzip", "json"] }
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use mio::unix::pipe;
|
use nix::{libc, pty, unistd};
|
||||||
use nix::{libc, pty};
|
|
||||||
use std::{
|
use std::{
|
||||||
fs, io,
|
fs, io,
|
||||||
os::fd::{AsFd, AsRawFd, BorrowedFd},
|
os::fd::{AsFd, AsRawFd, BorrowedFd},
|
||||||
@@ -67,13 +66,13 @@ impl AsFd for DevTty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct DevNull {
|
pub struct DevNull {
|
||||||
tx: pipe::Sender,
|
tx: i32,
|
||||||
_rx: pipe::Receiver,
|
_rx: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl DevNull {
|
impl DevNull {
|
||||||
pub fn open() -> Result<Self> {
|
pub fn open() -> Result<Self> {
|
||||||
let (tx, rx) = pipe::new()?;
|
let (rx, tx) = unistd::pipe()?;
|
||||||
|
|
||||||
Ok(Self { tx, _rx: rx })
|
Ok(Self { tx, _rx: rx })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user