Cargo Features

[dependencies]
tallytree = { version = "0.3.4", default-features = false, features = ["fail-on-warnings", "with-benchmarks", "with-serde"] }
default = with-serde

The with-serde feature is set by default whenever tallytree is added without default-features = false somewhere in the dependency tree.

fail-on-warnings
with-benchmarks

Benchmarks use mod test that is only available in nightly (as of Feb 2022)

with-serde default = serde, serde_json

Affects serialize::to_json, serialize::from_json

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.

serde with-serde
serde_json with-serde