fork/rules_rust

git clone https://git.julia.blue/fork/rules_rust

UebelAndreAdded bzlmod support to all extension rules. (#3037)a7aba2d0

main
2.0 KiB65 linesraw
1workspace(name = "rules_rust_protobuf")
2
3# Users of `rules_rust` will commonly be unable to load it
4# using a `local_repository`. Instead, to setup the rules,
5# please see https://bazelbuild.github.io/rules_rust/#setup
6local_repository(
7    name = "rules_rust",
8    path = "../..",
9)
10
11load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
12
13rules_rust_dependencies()
14
15rust_register_toolchains()
16
17load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
18
19crate_universe_dependencies(bootstrap = True)
20
21load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies")
22
23rust_analyzer_dependencies()
24
25load("//:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains")
26
27rust_proto_protobuf_dependencies()
28
29rust_proto_protobuf_register_toolchains()
30
31load("//:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories")
32
33rust_proto_protobuf_transitive_repositories()
34
35# Needed by protobuf
36load("@rules_python//python:repositories.bzl", "py_repositories")
37
38py_repositories()
39
40load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
41
42bazel_skylib_workspace()
43
44# --- end stardoc
45
46load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
47
48http_archive(
49    name = "bazel_ci_rules",
50    sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e",
51    strip_prefix = "bazelci_rules-1.0.0",
52    url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz",
53)
54
55# To run with RBE on Bazel CI, uncomment the following lines.
56#
57# load("@bazel_ci_rules//:rbe_repo.bzl", "rbe_preconfig")
58# rbe_preconfig(name = "buildkite_config", toolchain = "ubuntu2004-bazel-java11")
59
60http_archive(
61    name = "rules_testing",
62    sha256 = "02c62574631876a4e3b02a1820cb51167bb9cdcdea2381b2fa9d9b8b11c407c4",
63    strip_prefix = "rules_testing-0.6.0",
64    url = "https://github.com/bazelbuild/rules_testing/releases/download/v0.6.0/rules_testing-v0.6.0.tar.gz",
65)