Make hhi library work with cargo build
commitf796e6e81b0bfe2176ff7cd58f399fd2dde18506
authorAaron Orenstein <aorenste@meta.com>
Wed, 12 Oct 2022 22:22:44 +0000 (12 15:22 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Oct 2022 22:22:44 +0000 (12 15:22 -0700)
treec86e144938bc786784acdc2d91394ecbc73a70f9
parente91321ac7aa22fba1abedf6c13faf29ed29bc345
Make hhi library work with cargo build

Summary:
The rust hhi library provides the ability to write out the HHI files to a path.  Unfortunately it's actually a bit complex to gather the HHI files (particularly the HSL ones - the HHVM ones are pretty easy).

This code is only used by HackC for building a decl provider - so in a non-fbcode build just provide no HHIs for now.

Differential Revision: D39948462

fbshipit-source-id: 054185cee241d9353e3ddec4fb60f78958487d71
12 files changed:
hphp/hack/src/Cargo.lock
hphp/hack/src/cargo/generate_hhi/Cargo.toml [deleted file]
hphp/hack/src/generate_hhi/cargo/generate_hhi/Cargo.toml [new file with mode: 0644]
hphp/hack/src/generate_hhi/cargo/generate_hhi_lib/Cargo.toml [new file with mode: 0644]
hphp/hack/src/generate_hhi/generate_hhi.rs [new file with mode: 0644]
hphp/hack/src/generate_hhi/generate_hhi_lib.rs [moved from hphp/hack/src/generate_hhi.rs with 70% similarity]
hphp/hack/src/hhi/rust/Cargo.toml
hphp/hack/src/hhi/rust/build.rs [new file with mode: 0644]
hphp/hack/src/hhi/rust/cargo/gen_hhi_contents_lib/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhi/rust/gen_hhi_contents.rs
hphp/hack/src/hhi/rust/gen_hhi_contents_lib.rs [new file with mode: 0644]
hphp/hack/src/hhi/rust/hhi.rs