mirror of
https://github.com/CloudNebulaProject/wayray.git
synced 2026-04-10 13:10:41 +00:00
Add platform-aware IPC transport layer for the launcher protocol: - transport module: send_request_sync() auto-selects doors (illumos) or Unix sockets (Linux) at compile time - doors_transport: uses doors::Client for high-speed synchronous RPC, gated behind cfg(target_os = "illumos") + "doors" feature flag - unix_transport: blocking Unix socket client for all platforms Simplify client binaries to use the sync transport: - wradm: drops tokio dependency entirely, now fully synchronous - wrlogin: drops tokio dependency, uses sync transport - wrsessd: uses shared default_ipc_path() for consistency The doors crate (0.8.1) is an optional illumos-only dependency. On Linux, all code compiles and tests pass with Unix socket transport.
21 lines
423 B
TOML
21 lines
423 B
TOML
[package]
|
|
name = "wayray-protocol"
|
|
edition.workspace = true
|
|
version.workspace = true
|
|
license.workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
doors = ["dep:doors"]
|
|
|
|
[dependencies]
|
|
serde.workspace = true
|
|
postcard.workspace = true
|
|
thiserror.workspace = true
|
|
tracing.workspace = true
|
|
zstd.workspace = true
|
|
toml = "0.8"
|
|
serde_json = "1"
|
|
|
|
[target.'cfg(target_os = "illumos")'.dependencies]
|
|
doors = { version = "0.8", optional = true }
|