All Projects → paolobarbolini → bzip2-rs

paolobarbolini / bzip2-rs

Licence: other
Pure Rust bzip2 decoder

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to bzip2-rs

rbzip2
bzip2 for Ruby
Stars: ✭ 39 (+39.29%)
Mutual labels:  compression, bzip2
go7z
A native Go 7z archive reader.
Stars: ✭ 46 (+64.29%)
Mutual labels:  compression, bzip2
ratarmount
Random Access Read-Only Tar Mount
Stars: ✭ 217 (+675%)
Mutual labels:  compression, bzip2
pyrus-cramjam
Thin Python wrapper to de/compression algorithms in Rust - lightweight & no dependencies
Stars: ✭ 40 (+42.86%)
Mutual labels:  compression, bzip2
DAR
DAR - Disk ARchive
Stars: ✭ 58 (+107.14%)
Mutual labels:  compression
exhal
Compression and decompression tools for NES, SNES, and Game Boy games by HAL Laboratory
Stars: ✭ 54 (+92.86%)
Mutual labels:  compression
naf
Nucleotide Archival Format - Compressed file format for DNA/RNA/protein sequences
Stars: ✭ 35 (+25%)
Mutual labels:  compression
zip-bucket
zips files in a Google Cloud Storage [tm] bucket
Stars: ✭ 32 (+14.29%)
Mutual labels:  compression
image-optimizer
Smart image optimization
Stars: ✭ 15 (-46.43%)
Mutual labels:  compression
pakkero
Pakkero is a binary packer written in Go made for fun and educational purpose. Its main goal is to take in input a program file (elf binary, script, even appimage) and compress it, protect it from tampering and intrusion.
Stars: ✭ 143 (+410.71%)
Mutual labels:  compression
rc-zip
Pure rust zip & zip64 reading and writing
Stars: ✭ 93 (+232.14%)
Mutual labels:  compression
huffman
Using huffman coding to compress-decompress real-world files
Stars: ✭ 27 (-3.57%)
Mutual labels:  compression
TinyJPG
images jpg or jpeg compressed and watcher fsnotify
Stars: ✭ 73 (+160.71%)
Mutual labels:  compression
lz4-napi
Fastest lz4 compression library in Node.js, powered by napi-rs and lz4-flex.
Stars: ✭ 29 (+3.57%)
Mutual labels:  compression
packtag
A JSP Taglib for delivering minified, combined and gzip-compressed resources (JavaScript and CSS).
Stars: ✭ 22 (-21.43%)
Mutual labels:  compression
SSD-Pruning-and-quantization
Pruning and quantization for SSD. Model compression.
Stars: ✭ 19 (-32.14%)
Mutual labels:  compression
zopflipy
A Python bindings for Zopfli
Stars: ✭ 17 (-39.29%)
Mutual labels:  compression
SevenZipSharp
Fork of SevenZipSharp on CodePlex
Stars: ✭ 171 (+510.71%)
Mutual labels:  compression
node-janus
https://wiki.mozilla.org/Mobile/Janus
Stars: ✭ 58 (+107.14%)
Mutual labels:  compression
hdt-cpp
HDT C++ Library and Tools
Stars: ✭ 94 (+235.71%)
Mutual labels:  compression

bzip2-rs

crates.io Documentation dependency status Rustc Version 1.34.2+ CI

Pure Rust 100% safe bzip2 decompressor.

Features

  • rayon: enable using the rayon global threadpool for parallel decoding. NOTE: this feature is not subject to a MSRV. At the time of writing the MSRV for rayon is 1.36.0

  • Default features: Rust >= 1.34.2 is supported

  • rustc_1_37: bump MSRV to 1.37, enable more optimizations

  • rustc_1_55: bump MSRV to 1.55, enable more optimizations

  • nightly: require Rust Nightly, enable more optimizations

Usage

use std::fs::File;
use std::io;
use bzip2_rs::DecoderReader;

let mut compressed_file = File::open("input.bz2")?;
let mut decompressed_output = File::create("output")?;

let mut reader = DecoderReader::new(compressed_file);
io::copy(&mut reader, &mut decompressed_output)?;

Upcoming features

  • bzip2 encoding support
  • no_std support (is anybody interested with this?)

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].