mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
edb679f785
Summary: This diff rollouts V2 of autocargo in an atomic way so there are quite a few things done here. Arc lint support: V1 used to be part of the default fbsource `arc lint` engine, but since V2 calls buck it must live in a separate lint engine. So this diff: - Adds running `autocargo` as part of `arc lint-rust` Mergedriver update: - Mergedriver used in resolving conflicts on commits is now pointing to V2 - It handles files in `public_autocargo/` directories in addition to the ones containig generation preamble Including regeneration results of running `common/rust/cargo_from_buck/bin/autocargo`. All the differences are accounted for: - Some sections and attributes are removed as they can be autodiscovered by Cargo (like `lib.path = "src/lib.rs"` or empty [lib] section) - "readme" attribute is properly defined as relative to Cargo.toml location rather than as hardcoded string - "unittest = false" on a Buck rule propagates as "test = false; doctest = false" to Cargo - "rusqlite" is not special-cased anymore, so the "budled" feature will have to be enabled using custom configuration if required by the project (for rust-shed in order to not break windows builds a default feature section was added) - Files generated from thrift_library rules that do not support "rust" language are removed - Custom .bzl rules that create rust artifacts (like `rust_python_extension`) are no longer ignored Others: - Changed `bin/cargo-autocargo` to be a wrapper for calling V2 via `cargo autocargo` - Updated following files to use V2: - `common/rust/tools/reindeer/version-bump` - `remote_execution/rust/setup.sh` - Removed few files from V1 that would otherwise interfere with V2 automatic regeneration/linting/testing Reviewed By: zertosh Differential Revision: D26728789 fbshipit-source-id: d1454e7ce658a2d3194704f8d77b12d688ec3e64
46 lines
2.1 KiB
TOML
46 lines
2.1 KiB
TOML
[package]
|
|
name = "phases"
|
|
version = "0.1.0"
|
|
authors = ["Facebook"]
|
|
edition = "2018"
|
|
license = "GPLv2+"
|
|
autotests = false
|
|
|
|
[[test]]
|
|
name = "tests"
|
|
path = "tests/src/main.rs"
|
|
|
|
[dependencies]
|
|
abomonation = "0.7"
|
|
abomonation_derive = "0.5"
|
|
anyhow = "1.0"
|
|
ascii = "1.0"
|
|
async-trait = "0.1.29"
|
|
auto_impl = "0.4"
|
|
bytes = { version = "0.5", features = ["serde"] }
|
|
cachelib = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
caching_ext = { version = "0.1.0", path = "../common/rust/caching_ext" }
|
|
changeset_fetcher = { version = "0.1.0", path = "../blobrepo/changeset_fetcher" }
|
|
context = { version = "0.1.0", path = "../server/context" }
|
|
fbinit = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
futures = { version = "0.3.5", features = ["async-await", "compat"] }
|
|
maplit = "1.0"
|
|
memcache = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
mononoke_types = { version = "0.1.0", path = "../mononoke_types" }
|
|
sql = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
sql_construct = { version = "0.1.0", path = "../common/sql_construct" }
|
|
sql_ext = { version = "0.1.0", path = "../common/rust/sql_ext" }
|
|
stats = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
blobrepo = { version = "0.1.0", path = "../blobrepo" }
|
|
blobrepo_hg = { version = "0.1.0", path = "../blobrepo/blobrepo_hg" }
|
|
bookmarks = { version = "0.1.0", path = "../bookmarks" }
|
|
borrowed = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
cloned = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
fixtures = { version = "0.1.0", path = "../tests/fixtures" }
|
|
mercurial_types = { version = "0.1.0", path = "../mercurial/types" }
|
|
mononoke_types-mocks = { version = "0.1.0", path = "../mononoke_types/mocks" }
|
|
tokio = { version = "0.2.25", features = ["full", "test-util"] }
|