Cargo Features

[dependencies]
zhconv = { version = "0.3.0", default-features = false, features = ["opencc", "compress"] }
default = compress, opencc

OpenCC rulesets are activated by default.
Disabling the feature would boost performance further at the cost of less accuracy.

opencc default = lazy_static
compress default = ruzstd, zstd

Affects utils::zstd_decompress

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

lazy_static build opencc

Enables lazy_static

TODO: switch to once_cell

ruzstd compress

Enables ruzstd ^0.4

zstd build compress

Enables zstd ^0.12