Calm I/O

Crate Documentation License Continuous Integration Crate Downloads Crate Size

Calm I/O is a project I started after observing that some Rust programs, when piped into head, would show a visible panic report. After complaining on Twitter, I learned to my horror that the problem was much different than I had first assumed, and that Rust was in fact handling it correctly.

So this crate provides macros for writing to the standard streams that do not panic when the stream goes away, and an attribute to place on main that prevents exiting due to broken pipe from reporting failure in the exit code.