Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions modules/cxx.rs/1.0.187/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module(
name = "cxx.rs",
version = "1.0.187",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 1,
)

bazel_dep(name = "bazel_features", version = "1.32.0")
bazel_dep(name = "bazel_skylib", version = "1.8.1")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.2.4")
bazel_dep(name = "rules_rust", version = "0.65.0")

rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(versions = ["1.90.0"])
use_repo(rust, "rust_toolchains")

register_toolchains("@rust_toolchains//:all")

crate_repositories = use_extension("//tools/bazel:extension.bzl", "crate_repositories")
use_repo(crate_repositories, "crates.io", "vendor")
12 changes: 12 additions & 0 deletions modules/cxx.rs/1.0.187/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,7 +1,7 @@
module(
name = "cxx.rs",
- version = "0.0.0",
+ version = "1.0.187",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 1,
)

15 changes: 15 additions & 0 deletions modules/cxx.rs/1.0.187/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
matrix:
platform:
- macos_arm64
- ubuntu2404
- windows
bazel: [7.x, 8.x]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@cxx.rs//...'
test_targets:
- '@cxx.rs//...'
Comment on lines +12 to +15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

In presubmit.yml for an anonymous module task, the targets should be referenced relative to the module's root. The correct syntax is //..., not @cxx.rs//.... The @cxx.rs repository name refers to the module when it's a dependency, but in presubmit, the module under test is the main module.

    build_targets:
      - "//..."
    test_targets:
      - "//..."

9 changes: 9 additions & 0 deletions modules/cxx.rs/1.0.187/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-fB+/MeNo4wq1RMf9GlURiJmzEFrESj7ZonviloOXmqY=",
"strip_prefix": "cxx-1.0.187",
"url": "https://github.com/dtolnay/cxx/releases/download/1.0.187/cxx-1.0.187.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-kigg329q+KK4+2VIu1gU/Fjfd51PyPt1aw55qrjY+Vg="
},
"patch_strip": 1
}
3 changes: 2 additions & 1 deletion modules/cxx.rs/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"1.0.183",
"1.0.184",
"1.0.185",
"1.0.186"
"1.0.186",
"1.0.187"
],
"yanked_versions": {}
}
Loading