mirror of
https://github.com/lexmount/moli.git
synced 2026-11-24 08:02:58 +00:00
fix(protocol): adapt CDP pipes to Tokio 1.53.3
This commit is contained in:
Generated
+2
-2
@@ -6131,9 +6131,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tokio"
|
||||
version = "1.53.1"
|
||||
version = "1.53.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"
|
||||
checksum = "ce3335fa71841cda333a58d7615b03901380ecf09d59b3296d21f8bbac0dde4e"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"libc",
|
||||
|
||||
@@ -31,7 +31,7 @@ rand = "0.10.3"
|
||||
serde_json = "1.0.145"
|
||||
socket2 = { version = "0.6.3", features = ["all"] }
|
||||
thiserror = "2.0.17"
|
||||
tokio = { version = "1.51.0", features = ["io-std", "io-util", "macros", "net", "rt-multi-thread", "signal", "sync"] }
|
||||
tokio = { version = "1.53.3", features = ["io-std", "io-util", "macros", "net", "rt-multi-thread", "signal", "sync"] }
|
||||
tracing = "0.1.41"
|
||||
tower = { version = "0.5.2", default-features = false, features = ["util"] }
|
||||
url = "2.5.7"
|
||||
@@ -43,7 +43,7 @@ moli-protocol = { path = "../moli-protocol", features = ["test-support"] }
|
||||
moli-test-support = { path = "../moli-test-support" }
|
||||
png = "0.18"
|
||||
time = "0.3"
|
||||
tokio = { version = "1.51.0", features = ["test-util"] }
|
||||
tokio = { version = "1.53.3", features = ["test-util"] }
|
||||
tokio-tungstenite = "0.28.0"
|
||||
|
||||
[lints]
|
||||
|
||||
@@ -25,7 +25,9 @@ struct PipeFd(tokio::io::unix::AsyncFd<std::fs::File>);
|
||||
impl PipeFd {
|
||||
fn new(file: std::fs::File) -> io::Result<Self> {
|
||||
socket2::SockRef::from(&file).set_nonblocking(true)?;
|
||||
Ok(Self(tokio::io::unix::AsyncFd::new(file)?))
|
||||
// SAFETY: AsyncFd owns the File and its descriptor until deregistration.
|
||||
let fd = unsafe { tokio::io::unix::AsyncFd::register(file)? };
|
||||
Ok(Self(fd))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user