Cargo Features
minicdn_core has no features set by default.
[dependencies]
minicdn_core = { version = "0.2.4", features = ["bytes", "bytestring", "etag", "last_modified", "mime", "gzip", "use_serde", "webp", "config", "walkdir", "brotli"] }
- bytes bytestring? use_serde?
-
Enables bytes
- bytestring etag? mime? = bytes
-
Enables bytestring
- etag = bytestring, sha256
-
Affects
minicdn_core::MiniCdnFile.etag
… - last_modified
-
Affects
minicdn_core::MiniCdnFile.last_modified
… - mime = bytestring, mime_guess
-
Affects
minicdn_core::MiniCdnFile.mime
… - gzip = flate2
-
Affects
minicdn_core::MiniCdnFile.contents_gzip
… - use_serde = serde
- webp = image, mime_guess
-
Enables webp
Affects
minicdn_core::MiniCdnFile.contents_webp
… - config = serde, toml
-
Affects
minicdn_core::CONFIG_SUFFIX
…
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.
- mime_guess mime? webp?
- sha256 etag?
- walkdir implicit feature
-
Enables walkdir
walkdir:
Recursively walk a directory
Affects
minicdn_core::FilesystemMiniCdn
… - flate2 gzip?
- brotli implicit feature
-
Enables brotli ^3.3
Affects
minicdn_core::MiniCdnFile.contents_brotli
… - image webp?
- serde config? use_serde?
- toml config?
-
Enables toml ^0.5