tilo-socket 0.5.2

Local sockets named by a path of any length: Unix-domain sockets where the kernel's fixed path buffer would refuse a deep profile or state root, and named pipes kept to one account on Windows.
Documentation
[package]
name = "tilo-socket"
version = "0.5.2"
edition = "2024"
# Published: the SDK's platform layer (tools/sdk/publish_check.py).
publish = true
license = "MIT"
readme = "../../../docs/crates/supporting-crate.md"
repository.workspace = true
homepage.workspace = true
description = "Local sockets named by a path of any length: Unix-domain sockets where the kernel's fixed path buffer would refuse a deep profile or state root, and named pipes kept to one account on Windows."

[lib]
name = "tilo_socket"
path = "src/lib.rs"

# A leaf with one platform call beside std: `tilo_files::native::socket` re-exports it, and
# tools that stay dependency-free (the `cargo desktop` launcher) bind and connect through it too.
[dependencies]
tokio = { workspace = true, optional = true, features = ["io-util", "net", "rt", "sync"] }

[features]
# The same sockets for a tokio caller (`tilo_socket::tokio`).
tokio = ["dep:tokio"]

# A stream's first bytes, peeked without consuming them (`MSG_PEEK`, `PeekNamedPipe`).
[target.'cfg(unix)'.dependencies]
libc.workspace = true

# Named pipes, their DACL and the account a peer's token names.
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_Security", "Win32_Security_Authorization", "Win32_Storage_FileSystem", "Win32_System_IO", "Win32_System_Pipes", "Win32_System_Threading"] }

[dev-dependencies]
tempfile.workspace = true
tilo-test-env = { path = "../../../tools/test-env" }

[lints]
workspace = true