Skip to content

Commit ca0033f

Browse files
authored
[workerd-cxx] replace cargo.toml with cargo.bzl (#14)
This will let us reuse PACKAGES in all downstream places (quite a few actually)
1 parent 2193acb commit ca0033f

12 files changed

+261
-37
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,7 @@ jobs:
3333
- run: bazel --version
3434
- run: bazel run demo --verbose_failures --noshow_progress ${{matrix.os == 'macos' && '--xcode_version_config=tools/bazel:github_actions_xcodes' || ''}}
3535
- run: bazel test ... --verbose_failures --noshow_progress ${{matrix.os == 'macos' && '--xcode_version_config=tools/bazel:github_actions_xcodes' || ''}}
36-
- name: Check MODULE.bazel.lock up to date
37-
run: git diff --exit-code
38-
- run: bazel run //third-party:vendor
39-
if: matrix.os == 'ubuntu'
40-
- name: Check third-party/bazel up to date
41-
run: git diff --exit-code
42-
if: matrix.os == 'ubuntu'
36+
4337

4438
clippy:
4539
name: Clippy

justfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cargo-update:
2+
bazel run //third-party:vendor

third-party/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
load("@rules_rust//crate_universe:defs.bzl", "crates_vendor")
2+
load("//third-party:cargo.bzl", "PACKAGES")
23

34
crates_vendor(
45
name = "vendor",
56
cargo_lockfile = "//third-party:Cargo.lock",
67
generate_build_scripts = True,
7-
manifests = ["//third-party:Cargo.toml"],
88
mode = "remote",
9+
packages = PACKAGES,
910
tags = ["manual"],
1011
vendor_path = "bazel",
1112
)

third-party/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third-party/bazel/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third-party/bazel/BUILD.cc-1.2.17.bazel renamed to third-party/bazel/BUILD.cc-1.2.20.bazel

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third-party/bazel/BUILD.clap-4.5.33.bazel

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third-party/bazel/BUILD.clap_builder-4.5.33.bazel

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third-party/bazel/BUILD.clap_derive-4.5.32.bazel

Lines changed: 101 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third-party/bazel/BUILD.heck-0.5.0.bazel

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)