mux: Replace winapi with windows-sys (#8072)
This commit is contained in:
1 parent
f93d903500
commit
86f17557f4
5 files changed
+8
-15
No files matched your search
Generated
+2
-2
@@ -3590,7 +3590,7 @@ dependencies = [
|
||||
"wezterm-dynamic",
|
||||
"wezterm-ssh",
|
||||
"wezterm-term",
|
||||
"winapi",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -7244,7 +7244,7 @@ dependencies = [
|
||||
"wezterm-client",
|
||||
"wezterm-term",
|
||||
"wezterm-uds",
|
||||
"winapi",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
+1
-8
@@ -51,14 +51,7 @@ wezterm-term = { workspace=true, features=["use_serde"] }
|
||||
|
||||
[target."cfg(windows)".dependencies]
|
||||
ntapi.workspace = true
|
||||
winapi = { workspace=true, features = [
|
||||
"handleapi",
|
||||
"memoryapi",
|
||||
"psapi",
|
||||
"processthreadsapi",
|
||||
"tlhelp32",
|
||||
"winsock2"
|
||||
]}
|
||||
windows-sys = { workspace = true, features = ["Win32_Networking_WinSock"] }
|
||||
|
||||
[dev-dependencies]
|
||||
k9.workspace = true
|
||||
+1
-1
@@ -31,7 +31,7 @@ use termwiz::escape::{Action, CSI};
|
||||
use thiserror::*;
|
||||
use wezterm_term::{Clipboard, ClipboardSelection, DownloadHandler, TerminalSize};
|
||||
#[cfg(windows)]
|
||||
use winapi::um::winsock2::{SOL_SOCKET, SO_RCVBUF, SO_SNDBUF};
|
||||
use windows_sys::Win32::Networking::WinSock::{SOL_SOCKET, SO_RCVBUF, SO_SNDBUF};
|
||||
|
||||
pub mod activity;
|
||||
pub mod client;
|
||||
|
||||
@@ -32,4 +32,4 @@ wezterm-term = { workspace=true, features=["use_serde"] }
|
||||
wezterm-uds.workspace = true
|
||||
|
||||
[target."cfg(windows)".dependencies]
|
||||
winapi = { workspace=true, features = [ "winuser" ]}
|
||||
windows-sys = { workspace = true, features = ["Win32_Networking_WinSock"] }
|
||||
@@ -4,7 +4,7 @@ use libc::{AF_UNSPEC, AI_CANONNAME, SOCK_DGRAM};
|
||||
use rcgen::{BasicConstraints, Certificate, CertificateParams, DistinguishedName, DnType, IsCa};
|
||||
use std::path::PathBuf;
|
||||
#[cfg(windows)]
|
||||
use winapi::shared::ws2def::{AF_UNSPEC, AI_CANONNAME, SOCK_DGRAM};
|
||||
use windows_sys::Win32::Networking::WinSock::{AF_UNSPEC, AI_CANONNAME, SOCK_DGRAM};
|
||||
|
||||
/// A helper for managing keys for the TLS server component.
|
||||
/// Each time the server is started, a new CA is generated
|
||||
@@ -35,8 +35,8 @@ impl Pki {
|
||||
let mut alt_names = vec![hostname.clone(), "localhost".to_owned()];
|
||||
|
||||
let hints = dns_lookup::AddrInfoHints {
|
||||
flags: AI_CANONNAME,
|
||||
address: AF_UNSPEC,
|
||||
flags: AI_CANONNAME as _,
|
||||
address: AF_UNSPEC as _,
|
||||
socktype: SOCK_DGRAM,
|
||||
protocol: 0,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user