Cargo Features

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

OpenCC rulesets are disabled by default.
Enabling the feature may improve accuracy at the cost of binary size bloating and performance degration.

opencc = 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. These features may have been created by mistake, and this functionality may be removed in the future.

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