Cargo Features

[dependencies]
libcramjam = { version = "0.6.0", default-features = false, features = ["capi", "snappy", "lz4", "bzip2", "brotli", "zstd", "igzip", "igzip-static", "igzip-shared", "ideflate", "ideflate-static", "ideflate-shared", "izlib", "izlib-static", "izlib-shared", "isal-static", "isal-shared", "use-system-isal", "gzip", "gzip-static", "gzip-shared", "zlib", "zlib-static", "zlib-shared", "deflate", "deflate-static", "deflate-shared", "xz", "xz-static", "xz-shared", "blosc2", "blosc2-static", "blosc2-shared", "use-system-blosc2", "wasm32-compat"] }
default = blosc2, brotli, bzip2, deflate, gzip, ideflate, igzip, izlib, lz4, snappy, xz, zlib, zstd

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

capi

Enables libc

snappy default

Enables snap

Affects capi::snappy_raw_max_compressed_len, capi::snappy_raw_decompressed_len, libcramjam::snappy

lz4 default

Enables lz4

Affects capi::lz4_frame_max_compression_level, capi::lz4_frame_max_compressed_len, capi::lz4_block_max_compressed_len, libcramjam::lz4

bzip2 default

Enables bzip2 ^0.4

Affects libcramjam::bzip2

brotli default

Enables brotli

Affects capi::brotli_max_compressed_len, libcramjam::brotli

zstd default

Enables zstd

Affects capi::zstd_max_compressed_len, libcramjam::zstd

igzip default = isal-static

Affects libcramjam::igzip

igzip-static = isal-static

Affects libcramjam::igzip

igzip-shared = isal-shared

Affects libcramjam::igzip

ideflate default = isal-static

Affects libcramjam::ideflate

ideflate-static = isal-static

Affects libcramjam::ideflate

ideflate-shared = isal-shared

Affects libcramjam::ideflate

izlib default = isal-static

Affects libcramjam::izlib

izlib-static = isal-static

Affects libcramjam::izlib

izlib-shared = isal-shared

Affects libcramjam::izlib

isal-static ideflate ideflate-static? igzip igzip-static? izlib izlib-static?

Enables static of isal-rs

isal-shared ideflate-shared? igzip-shared? izlib-shared?

Enables shared of isal-rs

use-system-isal

Enables use-system-isal of isal-rs

gzip default = gzip-static

Affects capi::gzip_max_compressed_len, libcramjam::gzip

gzip-static gzip

Enables flate2, libdeflate-sys <1.20.0, and libdeflater

libdeflate-sys:

TODO: requires gcc>=4.9 not available on Python's CI wheel builds

Affects libcramjam::gzip

gzip-shared

Enables flate2, libdeflater, dynamic of libdeflate-sys <1.20.0

Affects libcramjam::gzip

zlib default = zlib-static

Affects libcramjam::zlib

zlib-static zlib

Enables flate2, libdeflate-sys <1.20.0, and libdeflater

Affects libcramjam::zlib

zlib-shared

Enables flate2, libdeflater, dynamic of libdeflate-sys <1.20.0

Affects libcramjam::zlib

deflate default = deflate-static

Affects capi::deflate_max_compressed_len, libcramjam::deflate

deflate-static deflate

Enables flate2, libdeflate-sys <1.20.0, and libdeflater

Affects libcramjam::deflate

deflate-shared

Enables flate2, libdeflater, dynamic of libdeflate-sys <1.20.0

Affects libcramjam::deflate

xz default = xz-static

Affects libcramjam::xz

xz-static xz

builds from vendored source of xz

Enables static of xz2

Affects libcramjam::xz

xz-shared

_maybe_ uses system xz; probes for it but falls back to building static lib

Enables xz2

Affects libcramjam::xz

blosc2 default = blosc2-static

Affects libcramjam::blosc2

blosc2-static blosc2

Enables static of blosc2-rs

Affects libcramjam::blosc2

blosc2-shared

Enables shared of blosc2-rs

Affects libcramjam::blosc2

use-system-blosc2

Enables use-system-blosc2 of blosc2-rs

wasm32-compat

Enables deactivate-zlib-optim of blosc2-rs