Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
publish-to-bcr-bot[bot] and scentini authored Dec 16, 2024
1 parent 65e9dcd commit 750c013
Show file tree
Hide file tree
Showing 24 changed files with 656 additions and 5 deletions.
155 changes: 155 additions & 0 deletions modules/rules_rust/0.56.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
"""bazelbuild/rules_rust"""

module(
name = "rules_rust",
version = "0.56.0",
)

###############################################################################
## Core
###############################################################################

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.10",
)
bazel_dep(
name = "rules_cc",
version = "0.0.17",
)
bazel_dep(
name = "rules_license",
version = "1.0.0",
)
bazel_dep(
name = "rules_shell",
version = "0.3.0",
)
bazel_dep(
name = "apple_support",
version = "1.17.1",
repo_name = "build_bazel_apple_support",
)

internal_deps = use_extension("//rust/private:internal_extensions.bzl", "i")
use_repo(
internal_deps,
"rrra__anyhow-1.0.71",
"rrra__clap-4.3.11",
"rrra__env_logger-0.10.0",
"rrra__itertools-0.11.0",
"rrra__log-0.4.19",
"rrra__serde-1.0.171",
"rrra__serde_json-1.0.102",
"rules_rust_tinyjson",
)

rust = use_extension("//rust:extensions.bzl", "rust")
rust.toolchain(edition = "2021")
use_repo(rust, "rust_toolchains")

register_toolchains(
"@rust_toolchains//:all",
)

rust_host_tools = use_extension("//rust:extensions.bzl", "rust_host_tools")
use_repo(rust_host_tools, "rust_host_tools")

rust_test = use_extension("//test:test_extensions.bzl", "rust_test", dev_dependency = True)
use_repo(
rust_test,
"buildkite_config",
"generated_inputs_in_external_repo",
"libc",
"rules_rust_test_load_arbitrary_tool",
"rules_rust_toolchain_test_target_json",
"t3p",
"t3p__serde-1.0.215",
"t3p__serde_json-1.0.133",
)

bazel_dep(
name = "rules_python",
version = "0.40.0",
dev_dependency = True,
)
bazel_dep(
name = "rules_testing",
version = "0.7.0",
dev_dependency = True,
)
bazel_dep(
name = "bazel_ci_rules",
version = "1.0.0",
dev_dependency = True,
)

###############################################################################
## Crate Universe
###############################################################################

crate_universe_internal_deps = use_extension(
"//crate_universe/private:internal_extensions.bzl",
"cu",
)
use_repo(
crate_universe_internal_deps,
"cargo_bazel.buildifier-darwin-amd64",
"cargo_bazel.buildifier-darwin-arm64",
"cargo_bazel.buildifier-linux-amd64",
"cargo_bazel.buildifier-linux-arm64",
"cargo_bazel.buildifier-linux-s390x",
"cargo_bazel.buildifier-windows-amd64.exe",
"cargo_bazel_bootstrap",
"cui",
"cui__anyhow-1.0.89",
"cui__camino-1.1.9",
"cui__cargo-lock-10.0.1",
"cui__cargo-platform-0.1.9",
"cui__cargo_metadata-0.19.1",
"cui__cargo_toml-0.20.5",
"cui__cfg-expr-0.17.2",
"cui__clap-4.3.11",
"cui__crates-index-3.3.0",
"cui__hex-0.4.3",
"cui__indoc-2.0.5",
"cui__itertools-0.13.0",
"cui__maplit-1.0.2",
"cui__normpath-1.3.0",
"cui__once_cell-1.20.2",
"cui__pathdiff-0.2.3",
"cui__regex-1.11.0",
"cui__semver-1.0.23",
"cui__serde-1.0.210",
"cui__serde_json-1.0.129",
"cui__serde_starlark-0.1.16",
"cui__sha2-0.10.8",
"cui__spdx-0.10.7",
"cui__tempfile-3.14.0",
"cui__tera-1.19.1",
"cui__textwrap-0.16.1",
"cui__toml-0.8.19",
"cui__tracing-0.1.40",
"cui__tracing-subscriber-0.3.18",
"cui__url-2.5.2",
"cui__walkdir-2.5.0",
)

crate_universe_internal_dev_deps = use_extension(
"//crate_universe/private:internal_extensions.bzl",
"cu_dev",
dev_dependency = True,
)
use_repo(
crate_universe_internal_dev_deps,
"cross_rs",
"cross_rs_host_bin",
)
39 changes: 39 additions & 0 deletions modules/rules_rust/0.56.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
bcr_test_module:
module_path: ""
matrix:
platform: ["macos_arm64", "ubuntu2004"]
bazel: ["7.x"]
tasks:
run_tests:
working_directory: examples/bzlmod/hello_world
name: "Run test module"
platform: ${{ platform }}
bazel: ${{ bazel }}
shell_commands:
# Remove the lockfile because we generate on Bazel 7, but test on Bazel 6 which may not be able to parse a future-generated lockfile.
- "rm MODULE.bazel.lock || true"
run_targets:
- "//third-party-in-workspace:vendor"
- "@rules_rust//tools/rust_analyzer:gen_rust_project"
test_targets:
- "//..."
# Windows is run separately because currently gen_rust_project doesn't run on windows, although it does build
bcr_test_module_windows:
module_path: ""
matrix:
bazel: ["7.x"]
tasks:
run_tests:
working_directory: examples/bzlmod/hello_world
name: "Run test module"
platform: windows
bazel: ${{ bazel }}
shell_commands:
# Remove the lockfile because we generate on Bazel 7, but test on Bazel 6 which may not be able to parse a future-generated lockfile.
- "rm MODULE.bazel.lock || true"
run_targets:
- "//third-party-in-workspace:vendor"
build_targets:
- "@rules_rust//tools/rust_analyzer:gen_rust_project"
test_targets:
- "//..."
5 changes: 5 additions & 0 deletions modules/rules_rust/0.56.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "sha256-8TBqrAsli3kN8BrZq8arsN8LZUFsdLTvJ/Sqsph4CmQ=",
"strip_prefix": "",
"url": "https://github.com/bazelbuild/rules_rust/releases/download/0.56.0/rules_rust-0.56.0.tar.gz"
}
3 changes: 2 additions & 1 deletion modules/rules_rust/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"0.52.2",
"0.53.0",
"0.54.1",
"0.55.6"
"0.55.6",
"0.56.0"
],
"yanked_versions": {}
}
70 changes: 70 additions & 0 deletions modules/rules_rust_bindgen/0.56.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
"""bazelbuild/rules_rust/extensions/bindgen"""

module(
name = "rules_rust_bindgen",
version = "0.56.0",
)

bazel_dep(
name = "rules_rust",
version = "0.56.0",
)
bazel_dep(
name = "bazel_skylib",
version = "1.7.1",
)
bazel_dep(
name = "platforms",
version = "0.0.10",
)
bazel_dep(
name = "rules_cc",
version = "0.0.17",
)
bazel_dep(
name = "llvm-project",
version = "17.0.3",
)
single_version_override(
module_name = "llvm-project",
patch_strip = 1,
patches = [
"@//3rdparty/patches:llvm-project.incompatible_disallow_empty_glob.patch",
],
)

rust_ext = use_extension("//:extensions.bzl", "rust_ext")
use_repo(
rust_ext,
"rules_rust_bindgen__bindgen-cli-0.70.1",
"rules_rust_bindgen_deps__bindgen-0.70.1",
"rules_rust_bindgen_deps__clang-sys-1.8.1",
"rules_rust_bindgen_deps__clap-4.5.17",
"rules_rust_bindgen_deps__clap_complete-4.5.26",
"rules_rust_bindgen_deps__env_logger-0.10.2",
)

register_toolchains(
"//:default_bindgen_toolchain",
)

bazel_dep(
name = "rules_testing",
version = "0.7.0",
dev_dependency = True,
)
bazel_dep(
name = "bazel_ci_rules",
version = "1.0.0",
dev_dependency = True,
)

rust_ext_dev = use_extension(
"//private:internal_extensions.bzl",
"rust_ext_dev",
dev_dependency = True,
)
use_repo(
rust_ext_dev,
"buildkite_config",
)
16 changes: 16 additions & 0 deletions modules/rules_rust_bindgen/0.56.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bcr_test_module:
module_path: ""
matrix:
platform:
- "macos_arm64"
- "ubuntu2004"
# # TODO: https://github.com/bazelbuild/rules_rust/issues/2009
# - "windows"
bazel: ["7.x"]
tasks:
run_tests:
name: "Run test module"
platform: ${{ platform }}
bazel: ${{ bazel }}
test_targets:
- "//..."
5 changes: 5 additions & 0 deletions modules/rules_rust_bindgen/0.56.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "sha256-8TBqrAsli3kN8BrZq8arsN8LZUFsdLTvJ/Sqsph4CmQ=",
"strip_prefix": "extensions/bindgen",
"url": "https://github.com/bazelbuild/rules_rust/releases/download/0.56.0/rules_rust-0.56.0.tar.gz"
}
3 changes: 2 additions & 1 deletion modules/rules_rust_bindgen/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"github:bazelbuild/rules_rust"
],
"versions": [
"0.55.6"
"0.55.6",
"0.56.0"
],
"yanked_versions": {}
}
49 changes: 49 additions & 0 deletions modules/rules_rust_mdbook/0.56.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
"""bazelbuild/rules_rust/extensions/mdbook"""

module(
name = "rules_rust_mdbook",
version = "0.56.0",
)

bazel_dep(
name = "rules_rust",
version = "0.56.0",
)
bazel_dep(
name = "rules_cc",
version = "0.0.17",
)
bazel_dep(
name = "bazel_skylib",
version = "1.7.1",
)
bazel_dep(
name = "platforms",
version = "0.0.10",
)

rust_ext = use_extension("//:extensions.bzl", "rust_ext")
use_repo(
rust_ext,
"rmdbi",
"rmdbi__mdbook-0.4.42",
"rules_rust_mdbook_toolchain",
)

register_toolchains("@rules_rust_mdbook_toolchain//:toolchain")

bazel_dep(
name = "bazel_ci_rules",
version = "1.0.0",
dev_dependency = True,
)

rust_ext_dev = use_extension(
"//private:internal_extensions.bzl",
"rust_ext_dev",
dev_dependency = True,
)
use_repo(
rust_ext_dev,
"buildkite_config",
)
12 changes: 12 additions & 0 deletions modules/rules_rust_mdbook/0.56.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
bcr_test_module:
module_path: ""
matrix:
platform: ["macos_arm64", "ubuntu2004", "windows"]
bazel: ["7.x"]
tasks:
run_tests:
name: "Run test module"
platform: ${{ platform }}
bazel: ${{ bazel }}
test_targets:
- "//..."
5 changes: 5 additions & 0 deletions modules/rules_rust_mdbook/0.56.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "sha256-8TBqrAsli3kN8BrZq8arsN8LZUFsdLTvJ/Sqsph4CmQ=",
"strip_prefix": "extensions/mdbook",
"url": "https://github.com/bazelbuild/rules_rust/releases/download/0.56.0/rules_rust-0.56.0.tar.gz"
}
Loading

0 comments on commit 750c013

Please sign in to comment.