7 releases (4 breaking)

Uses old Rust 2015

0.4.0 Nov 28, 2020
0.3.0 May 7, 2020
0.2.0 Jul 18, 2019
0.1.0 Oct 5, 2018
0.0.1 Jul 21, 2015

#271 in Memory management

Download history 3347/week @ 2024-03-14 3329/week @ 2024-03-21 2304/week @ 2024-03-28 2807/week @ 2024-04-04 2602/week @ 2024-04-11 3003/week @ 2024-04-18 3239/week @ 2024-04-25 2865/week @ 2024-05-02 2750/week @ 2024-05-09 2330/week @ 2024-05-16 2588/week @ 2024-05-23 3420/week @ 2024-05-30 2793/week @ 2024-06-06 2945/week @ 2024-06-13 2246/week @ 2024-06-20 2143/week @ 2024-06-27

10,938 downloads per month
Used in 43 crates (15 directly)

MIT license

16KB
323 lines

pipe

travis-badge release-badge docs-badge license-badge

A synchronous memory Read/Write pipe.


lib.rs:

Synchronous in-memory pipe

Example

use std::thread::spawn;
use std::io::{Read, Write};

let (mut read, mut write) = pipe::pipe();

let message = "Hello, world!";
spawn(move || write.write_all(message.as_bytes()).unwrap());

let mut s = String::new();
read.read_to_string(&mut s).unwrap();

assert_eq!(&s, message);

Dependencies

~350KB