Move Cargo.toml files to /cargo/ directory
commit9c5d9d1e24445fd142cb2f12bc2756a4cd109cfd
authorKasper Kopec <kasper@fb.com>
Thu, 19 Sep 2019 20:25:54 +0000 (19 13:25 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 19 Sep 2019 20:33:46 +0000 (19 13:33 -0700)
treeab0138c194d8f34a099d6d529cdb4f2189d11468
parentf41b19798a42e4166d74c273e5bad3e7314f0c5d
Move Cargo.toml files to /cargo/ directory

Summary:
We inherit "multiple targets in single directory" from `buck`, which is incompatible with `Cargo`, which requires single crate per directory. To mitigate it, we created a bunch of directories (quiet a few of them, after recent splitting of the parser) that contain nothing but `Cargo.toml` file. I think they make it harder to browse codebase, since you see a folder with interesting name, think that there will be some code inside, while there isn't. I would prefer not to think and see them at all. In this diff I move them to a single directory.

I'm open to suggestions if someone has different feelings about it.

Reviewed By: shiqicao

Differential Revision: D17470419

fbshipit-source-id: f4fba59a8d5d98f6f1b00479bc448d62b07e4900
27 files changed:
hphp/hack/Cargo.toml
hphp/hack/src/facts/Cargo.toml
hphp/hack/src/parser/Cargo.toml
hphp/hack/src/parser/cargo/core_types/Cargo.toml [new file with mode: 0644]
hphp/hack/src/parser/cargo/coroutine_parser/Cargo.toml [moved from hphp/hack/src/parser/coroutine_parser/Cargo.toml with 85% similarity]
hphp/hack/src/parser/cargo/coroutine_parser_leak_tree/Cargo.toml [moved from hphp/hack/src/parser/coroutine_parser_leak_tree/Cargo.toml with 78% similarity]
hphp/hack/src/parser/cargo/coroutine_parser_leak_tree_ffi/Cargo.toml [moved from hphp/hack/src/parser/coroutine_parser_leak_tree_ffi/Cargo.toml with 68% similarity]
hphp/hack/src/parser/cargo/coroutine_smart_constructors/Cargo.toml [moved from hphp/hack/src/parser/coroutine_smart_constructors/Cargo.toml with 80% similarity]
hphp/hack/src/parser/cargo/decl_mode_parser/Cargo.toml [moved from hphp/hack/src/parser/decl_mode_parser/Cargo.toml with 81% similarity]
hphp/hack/src/parser/cargo/decl_mode_parser_ffi/Cargo.toml [moved from hphp/hack/src/parser/decl_mode_parser_ffi/Cargo.toml with 70% similarity]
hphp/hack/src/parser/cargo/errors/Cargo.toml [moved from hphp/hack/src/parser/errors/Cargo.toml with 62% similarity]
hphp/hack/src/parser/cargo/errors/ffi/Cargo.toml [moved from hphp/hack/src/parser/errors/ffi/Cargo.toml with 53% similarity]
hphp/hack/src/parser/cargo/flatten_smart_constructors/Cargo.toml [moved from hphp/hack/src/parser/flatten_smart_constructors/Cargo.toml with 68% similarity]
hphp/hack/src/parser/cargo/minimal_parser/Cargo.toml [moved from hphp/hack/src/parser/minimal_parser/Cargo.toml with 77% similarity]
hphp/hack/src/parser/cargo/minimal_parser_ffi/Cargo.toml [moved from hphp/hack/src/parser/minimal_parser_ffi/Cargo.toml with 67% similarity]
hphp/hack/src/parser/cargo/positioned_coroutine_parser/Cargo.toml [moved from hphp/hack/src/parser/positioned_coroutine_parser/Cargo.toml with 73% similarity]
hphp/hack/src/parser/cargo/positioned_coroutine_parser_ffi/Cargo.toml [moved from hphp/hack/src/parser/positioned_coroutine_parser_ffi/Cargo.toml with 68% similarity]
hphp/hack/src/parser/cargo/positioned_parser/Cargo.toml [moved from hphp/hack/src/parser/positioned_parser/Cargo.toml with 77% similarity]
hphp/hack/src/parser/cargo/positioned_parser_ffi/Cargo.toml [moved from hphp/hack/src/parser/positioned_parser_ffi/Cargo.toml with 67% similarity]
hphp/hack/src/parser/cargo/rust_parser_ffi/Cargo.toml [moved from hphp/hack/src/parser/rust_parser_ffi/Cargo.toml with 61% similarity]
hphp/hack/src/parser/cargo/rust_to_ocaml/Cargo.toml [moved from hphp/hack/src/parser/rust_to_ocaml/Cargo.toml with 53% similarity]
hphp/hack/src/parser/cargo/syntax_smart_constructors/Cargo.toml [moved from hphp/hack/src/parser/syntax_smart_constructors/Cargo.toml with 68% similarity]
hphp/hack/src/parser/cargo/syntax_tree/Cargo.toml [moved from hphp/hack/src/parser/syntax_tree/Cargo.toml with 63% similarity]
hphp/hack/src/parser/cargo/verify_parser/Cargo.toml [moved from hphp/hack/src/parser/verify_parser/Cargo.toml with 81% similarity]
hphp/hack/src/parser/cargo/verify_parser_ffi/Cargo.toml [moved from hphp/hack/src/parser/verify_parser_ffi/Cargo.toml with 67% similarity]
hphp/hack/src/parser/core_types/Cargo.toml [deleted file]
hphp/hack/src/parser/ffi/Cargo.toml