Repository: bazelbuild/bazel-central-registry
Pull request #4085: cxx.rs@1.0.149
Author: login: publish-to-bcr-bot[bot]
Labels: name: presubmit-auto-run
description: Presubmit jobs will be triggered for new changes automatically without reviewer's approval
Created: 2025-03-18T20:01:29Z | Merged: 2025-03-19T01:29:07Z

Release: https://github.com/dtolnay/cxx/releases/tag/1.0.149

_Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_


Diff:
diff --git a/modules/cxx.rs/1.0.149/MODULE.bazel b/modules/cxx.rs/1.0.149/MODULE.bazel
new file mode 100644
index 00000000000..e68eddade63
--- /dev/null
+++ b/modules/cxx.rs/1.0.149/MODULE.bazel
@@ -0,0 +1,21 @@
+module(
+    name = "cxx.rs",
+    version = "1.0.149",
+    bazel_compatibility = [">=7.2.1"],
+    compatibility_level = 1,
+)
+
+bazel_dep(name = "bazel_features", version = "1.21.0")
+bazel_dep(name = "bazel_skylib", version = "1.7.1")
+bazel_dep(name = "platforms", version = "0.0.11")
+bazel_dep(name = "rules_cc", version = "0.1.1")
+bazel_dep(name = "rules_rust", version = "0.59.1")
+
+rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
+rust.toolchain(versions = ["1.85.1"])
+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")
diff --git a/modules/cxx.rs/1.0.149/patches/module_dot_bazel_version.patch b/modules/cxx.rs/1.0.149/patches/module_dot_bazel_version.patch
new file mode 100644
index 00000000000..d4a44a8d1ef
--- /dev/null
+++ b/modules/cxx.rs/1.0.149/patches/module_dot_bazel_version.patch
@@ -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.149",
+     bazel_compatibility = [">=7.2.1"],
+     compatibility_level = 1,
+ )
+ 
diff --git a/modules/cxx.rs/1.0.149/presubmit.yml b/modules/cxx.rs/1.0.149/presubmit.yml
new file mode 100644
index 00000000000..b5083f5e262
--- /dev/null
+++ b/modules/cxx.rs/1.0.149/presubmit.yml
@@ -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//...'
diff --git a/modules/cxx.rs/1.0.149/source.json b/modules/cxx.rs/1.0.149/source.json
new file mode 100644
index 00000000000..0318b8c8b95
--- /dev/null
+++ b/modules/cxx.rs/1.0.149/source.json
@@ -0,0 +1,9 @@
+{
+    "integrity": "sha256-aLyRw86suR/mzdvazQwUQEBjHryBHJAny7+WhH8VynU=",
+    "strip_prefix": "cxx-1.0.149",
+    "url": "https://github.com/dtolnay/cxx/releases/download/1.0.149/cxx-1.0.149.tar.gz",
+    "patches": {
+        "module_dot_bazel_version.patch": "sha256-+5J32C3VlwQJY6CR3SjLdChyef2ecGTh8GFIW3B37EM="
+    },
+    "patch_strip": 1
+}
diff --git a/modules/cxx.rs/metadata.json b/modules/cxx.rs/metadata.json
index ac865d41893..5ac2115bb84 100644
--- a/modules/cxx.rs/metadata.json
+++ b/modules/cxx.rs/metadata.json
@@ -1,17 +1,18 @@
 {
-    "homepage": "https://cxx.rs/",
+    "homepage": "https://cxx.rs",
     "maintainers": [
         {
-            "email": "daisuke.nishimatsu1021@gmail.com",
-            "github": "wep21",
-            "name": "Daisuke Nishimatsu"
+            "github": "dtolnay",
+            "email": "dtolnay@gmail.com",
+            "name": "David Tolnay"
         }
     ],
     "repository": [
         "github:dtolnay/cxx"
     ],
     "versions": [
-        "1.0.144"
+        "1.0.144",
+        "1.0.149"
     ],
     "yanked_versions": {}
 }


Reviews:
user: login: dtolnay
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-03-19T00:48:15Z
user: login: fmeum
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-03-19T01:29:01Z
user: login: vtsao-openai
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-19T17:31:28Z
user: login: dtolnay
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-19T18:16:28Z
user: login: vtsao-openai
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-21T01:43:34Z

Review comments:
diff_hunk: @@ -0,0 +1,21 @@
+module(
+    name = "cxx.rs",
+    version = "1.0.149",
+    bazel_compatibility = [">=7.2.1"],
+    compatibility_level = 1,
+)
+
+bazel_dep(name = "bazel_features", version = "1.21.0")
+bazel_dep(name = "bazel_skylib", version = "1.7.1")
+bazel_dep(name = "platforms", version = "0.0.11")
+bazel_dep(name = "rules_cc", version = "0.1.1")
+bazel_dep(name = "rules_rust", version = "0.59.1")
+
+rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
path: modules/cxx.rs/1.0.149/MODULE.bazel
user: login: vtsao-openai
body: Should this be in this dep's MODULE.bazel file? It will conflict if the root module including this already has a Rust `use_extension` defined.
created_at: 2025-03-19T17:31:28Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,21 @@
+module(
+    name = "cxx.rs",
+    version = "1.0.149",
+    bazel_compatibility = [">=7.2.1"],
+    compatibility_level = 1,
+)
+
+bazel_dep(name = "bazel_features", version = "1.21.0")
+bazel_dep(name = "bazel_skylib", version = "1.7.1")
+bazel_dep(name = "platforms", version = "0.0.11")
+bazel_dep(name = "rules_cc", version = "0.1.1")
+bazel_dep(name = "rules_rust", version = "0.59.1")
+
+rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
path: modules/cxx.rs/1.0.149/MODULE.bazel
user: login: dtolnay
body: Do you know a different way to implement it?
created_at: 2025-03-19T18:16:28Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,21 @@
+module(
+    name = "cxx.rs",
+    version = "1.0.149",
+    bazel_compatibility = [">=7.2.1"],
+    compatibility_level = 1,
+)
+
+bazel_dep(name = "bazel_features", version = "1.21.0")
+bazel_dep(name = "bazel_skylib", version = "1.7.1")
+bazel_dep(name = "platforms", version = "0.0.11")
+bazel_dep(name = "rules_cc", version = "0.1.1")
+bazel_dep(name = "rules_rust", version = "0.59.1")
+
+rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
path: modules/cxx.rs/1.0.149/MODULE.bazel
user: login: vtsao-openai
body: Never mind! The issue I was running into was not caused by this.
created_at: 2025-03-21T01:43:34Z
author_association: CONTRIBUTOR

PR comments:
user: login: bazel-io
created_at: 2025-03-18T20:01:44Z
body: Hello @wep21, modules you maintain (cxx.rs) have been updated in this PR.
      Please review the changes. You can view a diff against the previous version in the "Generate module diff" check.
author_association: MEMBER
user: login: dtolnay
created_at: 2025-03-19T00:49:14Z
body: When a maintainer merges this, please also close cxx.rs@1.0.147 https://github.com/bazelbuild/bazel-central-registry/pull/4045
author_association: CONTRIBUTOR