Encode a [`ProtoNode`] declaration to its content-addressed bytes: through a self-describing `serde_json::Value` (so serde aliases keep working and the on-disk shape stays migratable), then rmp-serialized (which encodes the intermediate `Value` compactly). Paired with [`decode_declaration`].
(proto: &ProtoNode)
source not stored for this graph (policy: none)
no outgoing calls
no test coverage detected