Cargo Features
[dependencies]
cddl = { version = "0.9.4", default-features = false, features = ["std", "lsp", "additional-controls", "ast-span", "ast-comments", "ast-parent", "json", "cbor"] }
- default = additional-controls, ast-comments, ast-parent, ast-span, cbor, json, std
-
These default features are set whenever
cddl
is added without
somewhere in the dependency tree.default-features = false - std default cbor json lsp? = base64-url, chrono, ciborium, clap, crossterm, regex-syntax, serde, serde-wasm-bindgen, serde_json, uriparse, wasm-bindgen
-
Enables alloc of base16 and data-encoding
Affects
cddl::validator
,parser::cddl_from_str
,parser::root_type_name_from_cddl_str
…Required by the binary
- lsp = std
-
Affects
parser::format_cddl_from_str
… - additional-controls default
-
Affects
control::cat_operation
,control::validate_abnf
,control::abnf_from_complex_controller
,validator::validate_json_from_str
,validator::validate_cbor_from_slice
,validator::validate_cbor_from_slice
… - ast-span default
-
Affects
ast::Span
,ast::Identifier.span
,ast::GenericParams.span
,ast::GenericArgs.span
,ast::Type.span
,ast::Type1.span
,ast::Group.span
,ast::GroupChoice.span
… - ast-comments default
-
Affects
ast::Comments
,ast::CDDL.comments
,ast::TypeRule.comments_before_assignt
,ast::TypeRule.comments_after_assignt
,ast::GroupRule.comments_before_assigng
,ast::GroupRule.comments_after_assigng
,ast::GenericParam.comments_before_ident
,ast::GenericParam.comments_after_ident
,ast::GenericArg.comments_before_type
,ast::GenericArg.comments_after_type
,ast::TypeChoice.comments_before_type
,ast::TypeChoice.comments_after_type
,ast::Type1.comments_after_type
,ast::Operator.comments_before_operator
,ast::Operator.comments_after_operator
,ast::GroupChoice.comments_before_grpchoice
… - ast-parent default
- json default = std
-
Affects
validator::validate_json_from_str
,validator::validate_json_from_str
,validator::validate_json_from_str
…Required by the binary
- cbor default = std
-
Affects
validator::validate_cbor_from_slice
,validator::validate_cbor_from_slice
,validator::validate_cbor_from_slice
,validator::validate_cbor_from_slice
…Required by the 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.
- chrono std
- clap std
-
Enables clap ^3.2.23
- regex-syntax std
-
Enables regex-syntax ^0.7.1
- serde std
- ciborium std
- serde_json std
- uriparse std
- base64-url std
-
Enables base64-url ^2.0.0
- crossterm not wasm32 std
-
Enables crossterm ^0.27.0
- serde-wasm-bindgen wasm32 std
-
Enables serde-wasm-bindgen ^0.5.0
- wasm-bindgen wasm32 std