Enums§
- Dependency
Source - Dependency source location (shared across all ecosystems).
- Loading
State - Loading state for registry data fetching.
Constants§
- MAX_
JSON_ NESTING_ DEPTH - Maximum allowed nesting depth for JSON array/object recursion before
check_json_nesting_depthrejects the input. - MAX_
TOML_ NESTING_ DEPTH - Maximum allowed nesting depth for TOML table/array recursion before
check_toml_nesting_depthrejects the input. - MAX_
YAML_ EXPANDED_ BYTES - Maximum total byte weight
check_yaml_expansionallows a document to expand to (counting anchor/alias-driven duplication) before rejecting it. - MAX_
YAML_ NESTING_ DEPTH - Maximum allowed nesting depth for YAML block/flow recursion before
check_yaml_nesting_depthrejects the input.
Functions§
- check_
json_ nesting_ depth - Scans raw JSON bytes for
[/{nesting deeper thanmax_depth, before handing the bytes toserde_json::from_slice/from_str. - check_
toml_ nesting_ depth - Scans raw TOML text for table/array recursion deeper than
max_depth. - check_
yaml_ expansion - Streams
contentthroughyaml-rust2’s own parser event stream and tallies the total bytes theYamlnodesYamlLoader::load_from_strwould allocate, rejecting once the tally exceedsmax_bytes. - check_
yaml_ nesting_ depth - Scans raw YAML text for block/flow recursion deeper than
max_depth. - parse_
json_ checked - Deserializes
bytesintoT, first rejecting payloads whose JSON nesting exceedsMAX_JSON_NESTING_DEPTH(see that constant’s doc for why).