pub(crate) fn write_canonical(value: &Value, out: &mut Vec<u8>) -> Result<()>Expand description
Sorted-key, whitespace-free JSON. Written out rather than delegated to
serde_json::to_vec over a Value, whose key order is the Map
backing serde_json happens to be compiled with — a cargo feature
elsewhere in the tree must not be able to change what a manifest hashes
to.