Write Rust library for deserializing via typechecker
Summary:
In light of experimentation around computing type info in native code,
write a Rust library to deserialize a stream of newline-separated JSON objects
that represent types in a typed AST of each program. Such serialized type info
is readily available, albeit potentially slow to compute via:
hh_single_type_check --type PATH_TO_HACK_FILE
Write "roundtrip" unit tests via type-safe by construction JSON literals,
which validate that the we get back that original and final JSON match:
(original) JSON (-> String) -> Ty<'_> -> String -> JSON (final)
^^^^^^^^^^^^^^^^
deserialization
Reviewed By: shayne-fletcher
Differential Revision:
D33288197
fbshipit-source-id:
9539cb62535ec3d6608ef6ead9bc95fc3c9a8529