Cargo Features

nlprule = { version = "0.6.4", default-features = false, features = ["regex-onig", "regex-fancy", "regex-all-test", "bin", "compile"] }
default = regex-onig

The regex-onig feature is set by default whenever nlprule is added without default-features = false somewhere in the dependency tree.

regex-onig default regex-all-test? = onig
regex-fancy regex-all-test? = fancy-regex

to switch to the fancy-regex engine, disable default features and add this feature

regex-all-test compile? = regex-fancy, regex-onig

this enables both regex backends at the same time and makes sure they are equivalent used only for compilation and tests

bin = clap, env_logger

needed for the bin test targets and to compile nlprule binaries, you'll usually not need these

Required by compile, run, test and test_disambiguation binaries

compile = regex-all-test, regex-syntax, roxmltree, serde-xml-rs, serde_json, xml-rs

Enables from_xml of srx

Affects nlprule::compile

Required by the compile binary

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.

onig regex-onig

Enables onig

regex backends

fancy-regex regex-fancy?

Enables fancy-regex ^0.5

clap bin?

Enables clap ^3.0.0-beta.1

needed for the bin targets

env_logger bin?

Enables env_logger ^0.8

regex-syntax compile?

Enables regex-syntax ^0.6

needed for compilation

serde-xml-rs compile?

Enables serde-xml-rs ^0.4

xml-rs compile?
roxmltree compile?

Enables roxmltree ^0.14.0

serde_json compile?