Cargo Features

[dependencies]
yab2 = { version = "0.1.0-alpha.3", default-features = false, features = ["fs", "pool", "large_buffers", "reqwest_compression"] }
default = fs, pool, reqwest_compression

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

fs default = futures-util, hex, sha1

Enables uploading files from the filesystem

Enables fs and macros of tokio

pool default = parking_lot

Enables the Pool type for reusing upload URLs

Affects yab2::pool

large_buffers

Enable large buffer support, 64KiB instead of 8KiB

reqwest_compression default

Enable common compression support for reqwest

Enables deflate and gzip of reqwest ^0.11

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.

parking_lot pool
hex fs
sha1 fs
futures-util fs