From 1621725dfb2e637f6fd59ce49b1f6d6ad94cff0d Mon Sep 17 00:00:00 2001 From: "Zeyi (Rice) Fan" Date: Thu, 16 Feb 2023 17:16:37 -0800 Subject: [PATCH] add watchman autocargo Summary: watchmanctl needs to have autocargo so our build won't get broken by crate updates. Reviewed By: mshroyer Differential Revision: D43375529 fbshipit-source-id: 25d4736c5c543e47b8618d0f2ad292d3f210c2f2 --- third-party/watchman/src/watchman/cli/Cargo.toml | 25 +++++++++++----- .../src/watchman/cli/public_autocargo/Cargo.toml | 34 ++++++++++++++++++++++ 2 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 third-party/watchman/src/watchman/cli/public_autocargo/Cargo.toml diff --git a/third-party/watchman/src/watchman/cli/Cargo.toml b/third-party/watchman/src/watchman/cli/Cargo.toml index 433ed41737b..aa75e7cb7a9 100644 --- a/third-party/watchman/src/watchman/cli/Cargo.toml +++ b/third-party/watchman/src/watchman/cli/Cargo.toml @@ -1,24 +1,33 @@ +# @generated by autocargo from //watchman/cli:cli [package] name = "watchmanctl" version = "0.1.0" +authors = ["Source Control Oncall oncall+source_control@xmail.facebook.com"] edition = "2021" [dependencies] -ahash = "0.3" -anyhow = "1.0" +ahash = "0.8" +anyhow = "1.0.65" atty = "0.2" -duct = "0.13" +duct = "0.13.6" jwalk = "0.6" -serde = "1.0" -serde_json = "1.0" -structopt = "0.3" +serde = { version = "1.0.136", features = ["derive", "rc"] } +serde_json = { version = "1.0.79", features = ["float_roundtrip", "unbounded_depth"] } +structopt = "0.3.23" sysinfo = "0.26.8" tabular = "0.2.0" -tokio = { version = "1.5", features = ["rt-multi-thread"] } +tokio = { version = "1.25.0", features = ["full", "test-util", "tracing"] } watchman_client = { path = "../rust/watchman_client" } +[target.'cfg(target_os = "linux")'.dependencies] +nix = "0.25" + +[target.'cfg(target_os = "macos")'.dependencies] +nix = "0.25" + [target.'cfg(unix)'.dependencies] -nix = "0.23" +nix = "0.25" [features] +default = ["fb"] fb = [] diff --git a/third-party/watchman/src/watchman/cli/public_autocargo/Cargo.toml b/third-party/watchman/src/watchman/cli/public_autocargo/Cargo.toml new file mode 100644 index 00000000000..085f6ecaa4e --- /dev/null +++ b/third-party/watchman/src/watchman/cli/public_autocargo/Cargo.toml @@ -0,0 +1,34 @@ +# @generated by autocargo + +[package] +name = "watchmanctl" +version = "0.1.0" +authors = ["Source Control Oncall oncall+source_control@xmail.facebook.com"] +edition = "2021" + +[dependencies] +ahash = "0.8" +anyhow = "1.0.65" +atty = "0.2" +duct = "0.13.6" +jwalk = "0.6" +serde = { version = "1.0.136", features = ["derive", "rc"] } +serde_json = { version = "1.0.79", features = ["float_roundtrip", "unbounded_depth"] } +structopt = "0.3.23" +sysinfo = "0.26.8" +tabular = "0.2.0" +tokio = { version = "1.25.0", features = ["full", "test-util", "tracing"] } +watchman_client = { version = "0.8.0", path = "../rust/watchman_client" } + +[target.'cfg(target_os = "linux")'.dependencies] +nix = "0.25" + +[target.'cfg(target_os = "macos")'.dependencies] +nix = "0.25" + +[target.'cfg(unix)'.dependencies] +nix = "0.25" + +[features] +default = [] +fb = [] -- 2.11.4.GIT