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

#343 in Memory management

Download history 2751/week @ 2024-11-01 2767/week @ 2024-11-08 2425/week @ 2024-11-15 2456/week @ 2024-11-22 2255/week @ 2024-11-29 2406/week @ 2024-12-06 3113/week @ 2024-12-13 1900/week @ 2024-12-20 1900/week @ 2024-12-27 2834/week @ 2025-01-03 2915/week @ 2025-01-10 2515/week @ 2025-01-17 2777/week @ 2025-01-24 2809/week @ 2025-01-31 3355/week @ 2025-02-07 1209/week @ 2025-02-14

10,625 downloads per month
Used in 55 crates (16 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