Cargo Features
[dependencies]
cddl = { version = "0.10.3", default-features = false, features = ["std", "lsp", "additional-controls", "ast-span", "ast-comments", "ast-parent", "json", "cbor", "csv-validate"] }
- default = additional-controls, ast-comments, ast-parent, ast-span, cbor, csv-validate, json, std, wasm-bindgen
-
These default features are set whenever
cddlis added withoutsomewhere in the dependency tree.default-features = false - std default cbor csv-validate json lsp? = base45, base64-url, chrono, ciborium, ciborium-io, ciborium-ll, clap, hex, regex-syntax, serde, serde-wasm-bindgen, serde_json, uriparse, wasm-bindgen
-
Enables alloc of base16 and data-encoding
Affects
cddl::validator,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,control::validate_b64u_text,control::validate_b64c_text,control::validate_hex_text,control::HexCase,control::validate_b32_text,control::validate_b45_text,control::validate_base10_text,control::validate_printf_text,control::validate_json_text,control::validate_join_text,csv_validator::validate_csv_from_str,csv_validator::validate_csv_from_str,validator::ValidationState.enabled_features,validator::ValidationState.enabled_features,validator::ValidationState.has_feature_errors,validator::ValidationState.disabled_features,validator::validate_json_from_str… - 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 csv-validate = 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
- csv-validate default = csv, json, std
-
Affects
validator::validate_csv_from_str,validator::validate_csv_from_str…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
- regex-syntax std
- serde std
- ciborium std
- ciborium-ll std
- ciborium-io std
- csv csv-validate
- serde_json std
- uriparse std
- base64-url std
- base45 std
- hex std
-
Enables hex
Add hex crate for tests
- serde-wasm-bindgen wasm32 std
- wasm-bindgen wasm32 default std