Suave :sunglasses:
Multi-process and interprocess communication library focused on getting things up and working. It is 100% async and written in pure rust.
Any and all methods should be supported and they are being added all the time. Come get involved.
Features
Easily create lockfiles
NOTE: This implementation requires no actual reading or writing.
use LockFile;
let lockfile = temp.await?;
// unlocked on Drop.
Use shared files to communicate
This implementation uses LockFile internally to sync writing.
use NamedPipe;
// connect to this shared resource
let pipe = connect.await?;
// aqquire the lock and write "Hello, World!"
let nbytes = pipe.write.await?;
eprintln!;
Use the clipboard to communicate
This implementation uses LockFile internally to sync writing.
use Clipboard;
let clipboard = connect.await?;
let contents = clipboard.read?;
eprintln!;
clipboard.write.await?;
// Alternate way to just read clipboard contents, due to reading not needed a lock.
let new_contents = contents?;
assert_eq!;