Rust crate for reading and writing single bit values from ordinary Readers and Writers
Add this library to your dependencies in your Cargo.toml
TOML
[dependencies]
bitstream-rs = "0.1.1"
Then import it in your source code
Rust
extern crate bitstream;
You can now use the BitReader
and BitWriter
Rust
let mut writer = BitWriter::new(outfile);
let mut reader = BitReader::new(infile);