Cargo Features
kl-hyphenate has no features set by default.
[dependencies]
kl-hyphenate = { version = "0.7.3", features = ["build_dictionaries", "nfc", "nfkd"] }
- build_dictionaries
- nfc = unicode-normalization
-
Unicode normalization.
HEED: these features are mutually exclusive; only one may be passed to rustc/cargo as an argument.
build.rs
ensures that these multiple "features" effectively behave as a single, configurable parameter: were the user to select more than one normalization form, the build will fail. - nfd nfkc nfkd = unicode-normalization
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.
- unicode-normalization build nfc? nfd? nfkc? nfkd?