use-compression 0.1.0

Compression level, intent, and codec label primitives for RustUse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# use-compression

Compression level, intent, and codec label primitives.

This crate is part of the `use-archive` facade workspace. It describes compression choices and optionally re-exports codec label crates for gzip, xz, zstd, bzip2, Brotli, and LZ4. It does not compress bytes, decompress bytes, or bind to codec implementations.

## Example

```rust
use use_compression::{CompressionIntent, CompressionLevel, CompressionSettings};

let settings = CompressionSettings::new(CompressionLevel::Balanced, CompressionIntent::Size);

assert_eq!(settings.level.as_str(), "balanced");
assert_eq!(settings.intent.as_str(), "size");
```