Cargo Features

[dependencies]
narsese = { version = "0.21.3", default-features = false, features = ["bundled", "enum_narsese", "lexical_narsese"] }
default = bundled

默认启用所有特性(可选禁用)

bundled default = enum_narsese, lexical_narsese

打包启用所有子特性

enum_narsese bundled

枚举Narsese

Affects string::impl_enum, narsese::enum_narsese

lexical_narsese bundled = lazy_static

词法Narsese

Affects string::impl_lexical, narsese::lexical

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 lexical_narsese?