Module canonicalize
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
RFC 8785 JSON Canonicalization and whitespace normalization for cache stability.
This module provides deterministic JSON serialization (RFC 8785 / JCS) and whitespace normalization so that semantically equivalent content always produces byte-identical output. This is critical for cache key stability: without canonicalization, tool schemas or JSON content with different key orders would produce different hashes and miss the cache.
Public functions
canonicalize_json- Canonicalize a JSON string per RFC 8785.canonicalize_value- Canonicalize aserde_json::Valueper RFC 8785.normalize_whitespace- Trim and collapse whitespace in text content.sha256_hex- Compute SHA-256 hex digest with"sha256:"prefix.
Functions
- canonicalize_json: Canonicalize a JSON string per RFC 8785 (JCS).
- canonicalize_value: Canonicalize a
serde_json::Valueper RFC 8785. - normalize_whitespace: Normalize whitespace in text content.
- sha256_hex: Compute SHA-256 hex digest with
"sha256:"prefix.