7 releases (breaking)

✓ Uses Rust 2018 edition

0.7.0 Jan 4, 2020
0.6.0 Jan 4, 2020
0.5.0 Dec 17, 2019
0.4.0 Dec 3, 2019
0.1.0 Sep 26, 2018
Download history 4486/week @ 2020-03-16 4799/week @ 2020-03-23 5475/week @ 2020-03-30 5160/week @ 2020-04-06 5129/week @ 2020-04-13 5061/week @ 2020-04-20 4706/week @ 2020-04-27 11111/week @ 2020-05-04 11766/week @ 2020-05-11 10211/week @ 2020-05-18 10707/week @ 2020-05-25 10967/week @ 2020-06-01 10793/week @ 2020-06-08 10737/week @ 2020-06-15 9721/week @ 2020-06-22 9233/week @ 2020-06-29

14,299 downloads per month
Used in 12 crates (2 directly)

MIT/Apache

26KB
626 lines

parity-tokio-ipc

Build Status

Documentation

This crate abstracts interprocess transport for UNIX/Windows. On UNIX it utilizes unix sockets (tokio_uds crate) and named pipe on windows (experimental tokio-named-pipes crate).

Endpoint is transport-agnostic interface for incoming connections:

  let endpoint = Endpoint::new(endpoint_addr, handle).unwrap();
  endpoint.incoming().for_each(|_| println!("Connection received!"));

And IpcStream is transport-agnostic io:

  let endpoint = Endpoint::new(endpoint_addr, handle).unwrap();
  endpoint.incoming().for_each(|(ipc_stream: IpcStream, _)| io::write_all(ipc_stream, b"Hello!"));

License

parity-tokio-ipc is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.

Dependencies

~4.5MB
~84K SLoC