uor-addr 0.2.0

UOR-ADDR โ€” the typed reference vocabulary for content-addressing across recursively-grammared formats. Standard-library Layer-3 Prism realization of the UOR Foundation; ships the common architectural surface plus the JSON realization under JCS-RFC8785 + NFC + SHA-256.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! CBOR realization grammar constant.
//!
//! Per ADR-060 there are no byte/count ceilings: byte-string and
//! text-string widths, array-element and map-entry counts, integer
//! magnitudes, and total document size are unbounded โ€” the canonicalizer
//! materializes the RFC 8949 ยง4.2 canonical form in an `alloc` buffer and
//! the input flows through the pipeline as a borrowed carrier.
//!
//! The single remaining bound is a **native-stack-overflow guard** for the
//! recursive-descent CBOR parser/canonicalizer.

/// Maximum data-item nesting depth the recursive-descent
/// parser/canonicalizer will descend before reporting a depth-bound
/// violation. Guards the native call stack against pathologically-nested
/// input; it is not a ceiling on document size, element count, or value
/// width.
pub const MAX_CBOR_DEPTH: usize = 1024;