6 releases (stable)

1.1.1 Mar 5, 2021
1.1.0 Jan 27, 2021
1.0.1 Dec 15, 2020
1.0.0 Nov 16, 2020
0.1.1 Aug 5, 2020

#52 in Operating systems

Download history 21/week @ 2021-01-15 52/week @ 2021-01-22 57/week @ 2021-01-29 170/week @ 2021-02-05 232/week @ 2021-02-12 382/week @ 2021-02-19 155/week @ 2021-02-26 249/week @ 2021-03-05 567/week @ 2021-03-12 435/week @ 2021-03-19 1957/week @ 2021-03-26 8535/week @ 2021-04-02 4401/week @ 2021-04-09 5444/week @ 2021-04-16 5345/week @ 2021-04-23 3653/week @ 2021-04-30

414 downloads per month
Used in 2 crates

MIT/Apache

325KB
5K SLoC

Interprocess

Crates.io Docs.rs Build Status

Interprocess communication toolkit for Rust programs. The crate aims to expose as many platform-specific features as possible while maintaining a uniform interface for all platforms.

Features

The following interprocess communication primitives are implemented:

  • Unnamed pipes — anonymous file-like objects for communicating privately in one direction, most commonly used to communicate between a child process and its parent
  • FIFO files — Unix-specific type of file which is similar to unnamed pipes but exists on the filesystem, often referred to as "named pipes" but completely different from Windows named pipes
  • Unix domain sockets — Unix-specific socket type which is extremely similar to normal network sockets but uses filesystem paths instead, with the optional Linux feature allowing them to use a spearate namespace akin to Windows named pipes
  • Windows named pipes — Windows-specific named pipe interface closely resembling Unix domain sockets
  • Local sockets — platform independent interface utilizing named pipes on Windows and Unix domain sockets on Unix. Async support included!
  • Signals — Unix-specific signals, used to receive critical messages from the OS and other programs, as well as sending those messages

License

This crate, along with all community contributions made to it, is dual-licensed under the terms of either the MIT license or the Apache 2.0 license.

Dependencies

~2–455KB