Cargo Features

[dependencies]
rdedup-lib = { version = "3.2.0", default-features = false, features = ["with-bzip2", "with-deflate", "with-xz2", "with-zstd", "backend-b2"] }
default = backend-b2, with-bzip2, with-deflate, with-xz2, with-zstd

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

with-bzip2 default = bzip2

Optional compression features

Affects compression::Bzip2, compression::Bzip2

with-deflate default = flate2

Affects compression::Deflate, compression::Deflate

with-xz2 default = rust-lzma

Affects compression::Xz2, compression::Xz2

with-zstd default = zstd

Affects compression::Zstd, compression::Zstd

backend-b2 default = backblaze-b2, hyper, hyper-native-tls

Optional backends

Affects rdedup-lib::backends.b2

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

backblaze-b2 backend-b2
hyper backend-b2

Enables hyper ^0.10

hyper-native-tls backend-b2
bzip2 with-bzip2
flate2 with-deflate
rust-lzma with-xz2

Enables rust-lzma ^0.5.1

zstd with-zstd

Enables zstd ^0.9