mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +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
36 lines
832 B
TOML
36 lines
832 B
TOML
# @generated by autocargo from //eden/scm/lib/http-client:[http-cli,http-client]
|
|
[package]
|
|
name = "http-client"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
[[bin]]
|
|
name = "http_cli"
|
|
path = "src/bin/cli.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
atty = "0.2"
|
|
curl = { version = "0.4", features = ["http2"] }
|
|
curl-sys = "0.4"
|
|
env_logger = "0.7"
|
|
futures = { version = "0.3.5", features = ["async-await", "compat"] }
|
|
http = "0.2"
|
|
once_cell = "1.4"
|
|
parking_lot = "0.10.2"
|
|
paste = "1.0"
|
|
pin-project = "0.4"
|
|
regex = "1.4.2"
|
|
serde = { version = "=1.0.118", features = ["derive", "rc"] }
|
|
serde_cbor = "0.11"
|
|
serde_json = { version = "1.0", features = ["float_roundtrip"] }
|
|
structopt = "0.3.21"
|
|
thiserror = "1.0"
|
|
tokio = { version = "1", features = ["full", "test-util"] }
|
|
tracing = "0.1"
|
|
url = "2.1.0"
|
|
|
|
[dev-dependencies]
|
|
crossbeam = "0.7"
|
|
mockito = "0.25"
|