Skip to main content

Crate haagenti_brotli

Crate haagenti_brotli 

Source
Expand description

§Haagenti Brotli

Brotli compression implementation (RFC 7932).

Brotli achieves high compression ratios, especially for text and web content, at the cost of slower compression speed.

§Features

  • High Ratio: Excellent compression for text/web content
  • Dictionary: Built-in and custom dictionary support
  • Streaming: Incremental compression/decompression
  • Quality Levels: 0-11 quality settings

§Example

use haagenti_brotli::BrotliCodec;
use haagenti_core::{Codec, Compressor, Decompressor};

let codec = BrotliCodec::new();
let compressed = codec.compress(data)?;
let original = codec.decompress(&compressed)?;

§Implementation

This crate wraps the brotli crate to provide Haagenti trait implementations. A native Rust implementation may be added in the future.

Structs§

BrotliCodec
Brotli codec combining compression and decompression.
BrotliCompressor
Brotli compressor.
BrotliDecompressor
Brotli decompressor.