Port signed_source.ml to Rust
commita5ba2002f8b5f2db5c06968fcaa23a69496bdc4f
authorJake Bailey <jakebailey@fb.com>
Tue, 26 Jul 2022 23:49:56 +0000 (26 16:49 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 26 Jul 2022 23:49:56 +0000 (26 16:49 -0700)
treeb548524ffcf677a0c7d0d9f7a83a01036dafb1c8
parentfaaf45dce12fe9c60c314f3ef35a8784f5f4795d
Port signed_source.ml to Rust

Summary: Port [signed_source.ml](https://www.internalfb.com/code/fbsource/%5B9cc4202e36a9%5D/fbcode/hphp/hack/src/utils/signed_source.ml) (which itself is a port of [signed_source.py](https://www.internalfb.com/code/fbsource/[424a7ea148d69a0a6f1ba32ca5f950ce657155f6]/tools/signedsource_lib/signedsource.py)) to Rust. Replace the ad-hoc signing implementation in hh_codegen.

Reviewed By: edwinsmith

Differential Revision: D38163503

fbshipit-source-id: e4dc4f96b43e6c34e37c331bfbd2f04f50b6c128
hphp/hack/Cargo.lock
hphp/hack/src/hh_codegen/Cargo.toml
hphp/hack/src/hh_codegen/common/mod.rs
hphp/hack/src/hh_codegen/hh_codegen.rs
hphp/hack/src/utils/rust/signed_source.rs [new file with mode: 0644]
hphp/hack/src/utils/rust/signed_source/Cargo.toml [new file with mode: 0644]