Registry / networking / unix-socket

unix-socket

JSON →
library0.5.0rscratesunverified

Unix domain socket bindings.

# Cargo.toml [dependencies] unix_socket = "0.5.0"
INSTALL
IMPORT
SIG · UNIX-SOCKET
U
unix-socket
networkingrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UnixStream
use unix_socket::UnixStream;

Connects to a Unix domain socket and sends a message.

use unix_socket::UnixStream; use std::io::Write; fn main() -> std::io::Result<()> { let mut stream = UnixStream::connect("/tmp/socket")?; stream.write_all(b"hello")?; Ok(()) }
Debug
Known issues
breakingThis crate is deprecated; use `std::os::unix::net` instead.
fix
Replace with `std::os::unix::net::UnixStream` from the standard library.
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
unix-socket — cargo add unix-socket · libregistry