Cargo Features
[dependencies]
gramatika = { version = "0.6.0", default-features = false, features = ["macros", "substr-source"] }
- default = macros
-
The
macros
feature is set by default whenevergramatika
is added without
somewhere in the dependency tree.default-features = false - macros default = gramatika-macro, once_cell, regex-automata
- substr-source
-
Use
arcstr::Substr
instead ofarcstr::ArcStr
as the "source" type for input text. This opens the possibility for some advanced use cases, like using a different parser to process some portions of a text document.Affects
gramatika::SourceStr
…
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.