Closed Atry closed 2 years ago
This pull request was exported from Phabricator. Differential Revision: D39732535
This pull request was exported from Phabricator. Differential Revision: D39732535
This pull request was exported from Phabricator. Differential Revision: D39732535
Summary:
Stop generating Cargo.toml We want to use autocargo to generate our Cargo.lock - to do that we need to have a checked-in Cargo.toml for it to work with.
Move Cargo.toml Because we already had Cargo.toml as a gitignored file in hphp/hack adding a non-ignored version it caused problems for any dev who rebased across that checkin (mercurial complained about the file with a non-obvious error) - so had to move the main Cargo.toml for hack to hphp/hack/src.
Tell autocargo to start generating Cargo.lock Use the new feature from D38836138 to generate the Cargo.lock in hphp/hack/src.
Since Cargo.toml moved .cargo/config also needed to move to be under hphp/hack/src.
Set .cargo/config to point at using fbsource/third-party/rust/vendor This used to be done as the first part of cargo_vendor.sh (when sourcing the vendor files) but now we want to leave as the standard.
Add a script to rewrite .cargo/config to use absolute paths. The ubuntu and dune tests move the hphp/hack directory to a temporary location - so for those tests we need to rewrite .cargo/config to use absolute paths instead of the fbsource-relative paths that they normally contain.
Reviewed By: shayne-fletcher
Differential Revision: D39732535