MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / encode_declaration

Function encode_declaration

document/graph-storage/src/from_runtime.rs:122–125  ·  view source on GitHub ↗

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 from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

convert_implementationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected