Implement Serialize and Deserialize for Hc
commiteb29548e6bc9a674de835478f392f7e3542a7a4a
authorJake Bailey (Hacklang) <jakebailey@fb.com>
Thu, 10 Mar 2022 19:41:36 +0000 (10 11:41 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 10 Mar 2022 19:41:36 +0000 (10 11:41 -0800)
tree64f64f7c82909c1122980c523bf32d0257fee441
parent50bccc8d23946e4b6ff6c6c8e67ef76c8bcc3a6f
Implement Serialize and Deserialize for Hc

Summary: Add a naive implementation of Serialize and Deserialize for Hc. The Serialize impl won't preserve sharing in the serialized output, but the Deserialize impl will get sharing in the deserialized value (via the normal hashconsing path in Hc::new).

Reviewed By: shayne-fletcher

Differential Revision: D34764625

fbshipit-source-id: 311fe0b781b707e8c07303d914ca2b0df818bcd5
hphp/hack/src/hcons/lib.rs