Skip to content

Commit be88661

Browse files
Copilotphlax
andcommitted
Add rules_rs v0.0.27.envoy to bazel-registry with telemetry removal
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
1 parent 8568076 commit be88661

File tree

5 files changed

+105
-0
lines changed

5 files changed

+105
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
"Bazel dependencies"
2+
3+
module(
4+
name = "rules_rs",
5+
version = "0.0.27.envoy",
6+
)
7+
8+
bazel_dep(name = "rules_rust", version = "0.66.0")
9+
10+
rust_host_tools = use_extension("@rules_rust//rust:extensions.bzl", "rust_host_tools")
11+
rust_host_tools.host_tools(
12+
name = "rs_rust_host_tools",
13+
)
14+
use_repo(
15+
rust_host_tools,
16+
"rs_rust_host_tools",
17+
)
18+
19+
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
20+
21+
[
22+
http_file(
23+
name = "toml2json_" + name,
24+
executable = True,
25+
sha256 = sha256,
26+
url = "https://github.com/dzbarsky/toml2json/releases/download/v0.0.7/toml2json_" + name + ext,
27+
)
28+
for name, sha256, ext in [
29+
("darwin_amd64", "e2240483b28d95c7ae9ded7fb0e921142a644d6847c1da9b44ae3557117ed54f", ""),
30+
("darwin_arm64", "20dd55c9d926a00b51c643a3c5677678eb5ddb8984ae2ad9cf3f701ccbb06d92", ""),
31+
("linux_amd64", "f074ff54589ca601a491d3f8e33b9618d861d19d8e2359a0addf02d378f36c7c", ""),
32+
("linux_arm64", "3f35040836858b5c1703be421ea1c06f83c68b6c14da37d0ee0655db891f125f", ""),
33+
("windows_amd64", "7e5561170e088c717f87ba4c05ec6d3a0406b62133959530c2f4646158c27a97", ".exe"),
34+
("windows_arm64", "bc6fbf776798a7beb7cb2b3feb898fcbc829b4106f0505cd08f251e7c1b2518e", ".exe"),
35+
]
36+
]
37+
38+
bazel_dep(name = "bazel_lib", version = "3.0.0")
39+
bazel_dep(name = "bazel_skylib", version = "1.4.1")
40+
bazel_dep(name = "package_metadata", version = "0.0.5")
41+
bazel_dep(name = "platforms", version = "0.0.5")
42+
bazel_dep(name = "rules_cc", version = "0.2.8")
43+
44+
bazel_dep(name = "rules_go", version = "0.59.0", dev_dependency = True)
45+
bazel_dep(name = "gazelle", version = "0.47.0", dev_dependency = True)
46+
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.8.2", dev_dependency = True)
47+
bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--- rules_rs-0.0.27-orig/rs/BUILD.bazel 2026-02-08 08:12:24.672823148 +0000
2+
+++ rules_rs-0.0.27/rs/BUILD.bazel 2026-02-08 08:12:30.999810298 +0000
3+
@@ -15,7 +15,6 @@
4+
"//rs/private:resolver",
5+
"//rs/private:semver",
6+
"//rs/private:toml2json",
7+
- "@aspect_tools_telemetry_report//:defs.bzl",
8+
"@bazel_skylib//lib:paths",
9+
],
10+
)
11+
--- rules_rs-0.0.27-orig/rs/extensions.bzl 2026-02-08 08:12:24.672823148 +0000
12+
+++ rules_rs-0.0.27/rs/extensions.bzl 2026-02-08 08:12:30.897810498 +0000
13+
@@ -1,4 +1,3 @@
14+
-load("@aspect_tools_telemetry_report//:defs.bzl", "TELEMETRY") # buildifier: disable=load
15+
load("@bazel_lib//lib:repo_utils.bzl", "repo_utils")
16+
load("@bazel_skylib//lib:paths.bzl", "paths")
17+
load("//rs/private:annotations.bzl", "WELL_KNOWN_ANNOTATIONS", "annotation_for", "build_annotation_map", "format_well_known_annotation")
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
bcr_test_module:
2+
module_path: ""
3+
matrix:
4+
platform:
5+
- debian11
6+
- ubuntu2404
7+
bazel:
8+
- 8.x
9+
tasks:
10+
run_tests:
11+
name: "Verify build targets"
12+
platform: ${{ platform }}
13+
bazel: ${{ bazel }}
14+
build_targets:
15+
- "@rules_rs//..."
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"url": "https://github.com/dzbarsky/rules_rs/releases/download/v0.0.27/rules_rs-v0.0.27.tar.gz",
3+
"integrity": "sha256-ZKOZJxQPvJ3KJsImxertVYn+6WsZHWsODq6/P2TGrRY=",
4+
"strip_prefix": "",
5+
"patches": {
6+
"remove_telemetry.patch": "sha256-HwgBe1DXita6BksFKYrWH0lVSuDOEI9NtFw587ZqkWA="
7+
},
8+
"patch_strip": 1
9+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"homepage": "https://github.com/dzbarsky/rules_rs",
3+
"maintainers": [
4+
{
5+
"email": "maintainers@envoyproxy.io",
6+
"github": "envoyproxy",
7+
"name": "Envoy Proxy Maintainers"
8+
}
9+
],
10+
"repository": [
11+
"github:dzbarsky/rules_rs"
12+
],
13+
"versions": [
14+
"0.0.27.envoy"
15+
],
16+
"yanked_versions": {}
17+
}

0 commit comments

Comments
 (0)