Cargo Features

[dependencies]
niffler = { version = "3.0.1", default-features = false, features = ["bz2", "lzma", "gz", "bgz", "zstd", "wasm"] }
default = bgz, bz2, gz, lzma, zstd

These default features are set whenever niffler is added without default-features = false somewhere in the dependency tree.

Enables bgzip, bzip2, flate2, liblzma, and zstd

bz2 default wasm?

Enables bzip2

lzma default wasm?

Enables liblzma

gz default wasm?

Enables flate2

bgz default wasm?

Enables bgzip

zstd default wasm?

Enables zstd

wasm = bgz, bz2, gz, lzma, zstd

Enables bzip2, liblzma, rust_backend of bgzip and rust_backend of flate2

flate2:

User-Facing Backend Features

Choose one of these features to select the compression backend. Only one backend should be enabled at a time, or else one will see an unstable order which is currently zlib-ng, zlib-rs, cloudflare_zlib, miniz_oxide and which may change at any time.

Use the pure Rust miniz_oxide backend (default). This implementation uses only safe Rust code and doesn't require a C compiler. It provides good performance for most use cases while being completely portable.

Note that this feature at some point may be switched to use zlib-rs instead.

niffler has 7 features without comments.