Cargo Features

[dependencies]
misc_utils = { version = "4.2.4", default-features = false, features = ["async-fs", "file-bz2", "file-gz", "file-xz", "jsonl"] }
default = file-gz, file-xz, jsonl

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

async-fs = tokio

Enables fs and rt of tokio

Affects misc_utils::async_fs

file-bz2 = bzip2
file-gz default = flate2
file-xz default = xz2
jsonl default = serde, serde_json

A nice multi-threaded JSONL iterator which puts file reading and JSON parsing into its own threads.

Affects error::MtJsonlError, fs::MtJsonl, fs::parse_jsonl_multi_threaded

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.

bzip2 file-bz2?
flate2 file-gz
serde jsonl

Enables serde

Optional dev-dependencies are not a thing :(

serde_json jsonl
tokio async-fs?
xz2 file-xz