Skeleton code for decls-to-facts conversionnightly-2021.10.19
commit3488e51905a9881e4b0cd8fb97171108d7319e8b
authorMillie Chen <[email protected]>
Tue, 19 Oct 2021 01:02:51 +0000 (18 18:02 -0700)
committerFacebook GitHub Bot <[email protected]>
Tue, 19 Oct 2021 01:05:05 +0000 (18 18:05 -0700)
tree0d0f8ee352e26b21f114896caabcbbf906ec7bfa
parent71a1f013ff5e7014afc40c2eb29c600611099ab8
Skeleton code for decls-to-facts conversion

Summary:
Add an FFI that transforms Decls into Facts
```
unsafe fn hackc_decls_to_facts_cpp_ffi<'a>(
    decls: &Decls<'a>,
    source_text: &CxxString,
) -> FactsResult;
```
Also add conversation traits to enable the flow "shared Decls" --> "rust Decls" --> "rust Facts" --> "shared Facts", with main logic to be implemented in "rust Decls" --> "rust Facts" stage.

Reviewed By: shayne-fletcher

Differential Revision: D31658146

fbshipit-source-id: 9646b7383ed40f8b80f164a0e7e5d738c88de983
hphp/hack/Cargo.lock
hphp/hack/src/facts/cargo/facts_rust/Cargo.toml
hphp/hack/src/facts/facts.rs
hphp/hack/src/hhbc/ffi_bridge/rust_compile_ffi_bridge.rs