13 lines
219 B
Rust
13 lines
219 B
Rust
use pipes::{Port, Chan};
|
|
|
|
/*
|
|
This is about the simplest program that can successfully send a
|
|
message.
|
|
*/
|
|
fn main() {
|
|
let (ch, po) = pipes::stream();
|
|
ch.send(42);
|
|
let r = po.recv();
|
|
log(error, r);
|
|
}
|