diff options
| author | divens <divens@users.noreply.github.com> | 2026-02-21 08:58:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-21 08:58:37 +0100 |
| commit | c5ba0dee80f817f140b22f62d386cc10988008e1 (patch) | |
| tree | 1d7bb05fbf43e98bbd162132520dffc384b80565 /Cargo.toml | |
| parent | refactor: split client signal handling into platform files (#4738) (diff) | |
| download | sl0ppij-c5ba0dee80f817f140b22f62d386cc10988008e1.tar.gz sl0ppij-c5ba0dee80f817f140b22f62d386cc10988008e1.tar.xz sl0ppij-c5ba0dee80f817f140b22f62d386cc10988008e1.zip | |
[Windows port PR5] refactor: upgrade interprocess to v2+ and abstract IPC for cross-platform support (#4740)
* refactor: upgrade interprocess to v2+ with cross-platform IPC support
Replace interprocess 1.2.1 with 2.2+ which provides cross-platform
local socket support (Unix domain sockets on Unix, named pipes on
Windows). Migrate all call sites from the flat v1 API to the v2
enum-dispatch API, and replace nix::unistd::dup fd-duplication with
interprocess::TryClone::try_clone().
* refactor: abstract FD duplication in IPC behind IpcStream trait
Decouple IPC structs from the concrete transport by introducing an
IpcStream trait that abstracts read/write/clone. Internal fields change
from BufWriter<LocalSocketStream> to BufWriter<Box<dyn IpcStream>>,
while the public new() constructors still accept LocalSocketStream so
no callers need updating.
* refactor: abstract session discovery behind is_ipc_socket() helper
Replace all 6 direct uses of std::os::unix::fs::FileTypeExt::is_socket()
with a cross-platform is_ipc_socket() helper in consts.rs. On Unix it
delegates to FileTypeExt::is_socket(); on non-Unix it returns false as a
placeholder for platform-specific session discovery added later.
---------
Co-authored-by: divens <divens.dev@gmail.com>
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -78,7 +78,7 @@ crossterm = { version = "0.28", default-features = false } daemonize = { version = "0.5", default-features = false } dialoguer = { version = "0.10.4", default-features = false, features = ["password", "completion"] } humantime = { version = "2.1.0", default-features = false } -interprocess = { version = "1.2.1", default-features = false } +interprocess = { version = "2.2", default-features = false } isahc = { version = "1.7.2", default-features = false, features = ["http2", "text-decoding"] } kdl = { version = "4.5.0", default-features = false, features = ["span"] } lazy_static = { version = "1.4.0", default-features = false } |
