Skip to content

fredrik-hammar/tee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tee

Build Status Coverage Status

A rustlang adapter for readers which delegate read bytes to a writer, adapted from the standard library's std::io::Read#tee which has since been deprecated.

install

Add the following to your Cargo.toml file

[dependencies]
tee = "0.1"

api docs

rustdoc api documentation can be found here

examples

The currently unstable/deprecated std library function looks like this

let tee_reader = reader.tee(writer);

With tee, this looks more like

let tee_reader = tee::TeeReader::new(reader, writer);

Doug Tangren (softprops) 2015

About

tee for rustlang readers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%