Skip to content

Commit 7293442

Browse files
Jaimin Brahmbhattmeta-codesync[bot]
authored andcommitted
Import gws (Google Workspace CLI) from GitHub
Summary: X-link: meta-pytorch/monarch#2923 Import the Google Workspace CLI (gws) package from https://github.com/googleworkspace/cli into fbsource's third-party Rust dependencies. gws is a Rust CLI tool that provides a dynamic command surface for interacting with Google Workspace APIs via the Discovery Service. It supports OAuth authentication and various Google Workspace services like Drive, Gmail, Calendar, etc. Changes made: 1. Added gws dependency to third-party/rust/Cargo.toml with artifact = "bin:gws" in the Linux + macOS + Windows platform section 2. Updated chrono from 0.4.41 to 0.4.44 (required by gws) 3. Created fixups/gws/fixups.toml with cargo_env for CARGO_PKG_VERSION and CARGO_PKG_NAME (required for version display in CLI) 4. Vendored all dependencies and regenerated BUCK targets Usage: deps = ["fbsource//third-party/rust:gws-gws"] Commands executed during import: # Fix git proxy configuration git config --global --replace-all http.proxy http://fwdproxy:8080 # Vendor the package (downloads source and transitive deps) fbcode/common/rust/tools/reindeer/vendor # Regenerate BUCK targets with fixups fbcode/common/rust/tools/reindeer/buckify # Run autocargo to update first-party Cargo.toml files arc autocargo # Build verification buck2 build fbsource//third-party/rust:gws-gws # Result: BUILD SUCCEEDED Reviewed By: dtolnay Differential Revision: D95642042 fbshipit-source-id: 8a8b3e7e187b79f007aa86fa0380ab950937f3fb
1 parent 7b8bf18 commit 7293442

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

below/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "Apache-2.0"
1111

1212
[dependencies]
1313
anyhow = "1.0.101"
14-
chrono = { version = "0.4.41", features = ["clock", "serde", "std"], default-features = false }
14+
chrono = { version = "0.4.44", features = ["clock", "serde", "std"], default-features = false }
1515
cursive = { version = "0.21.1", features = ["crossterm-backend"], default-features = false }
1616
humantime = "2.1"
1717
once_cell = "1.21"

below/view/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "Apache-2.0"
1111

1212
[dependencies]
1313
anyhow = "1.0.101"
14-
chrono = { version = "0.4.41", features = ["clock", "serde", "std"], default-features = false }
14+
chrono = { version = "0.4.44", features = ["clock", "serde", "std"], default-features = false }
1515
common = { package = "below-common", version = "0.11.0", path = "../common" }
1616
crossterm = { version = "0.28", features = ["event-stream", "serde"] }
1717
cursive = { version = "0.21.1", features = ["crossterm-backend"], default-features = false }

0 commit comments

Comments
 (0)