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
somewhere in the dependency tree.default-features = false - fs default = futures-util, hex, sha1
-
Enables uploading files from the filesystem
- pool default = parking_lot
-
Enables the
Pool
type for reusing upload URLsAffects
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.