xref: /aosp_15_r20/external/bazelbuild-rules_rust/WORKSPACE.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1*d4726bddSHONG Yifanworkspace(name = "rules_rust")
2*d4726bddSHONG Yifan
3*d4726bddSHONG Yifanload("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
4*d4726bddSHONG Yifan
5*d4726bddSHONG Yifanrules_rust_dependencies()
6*d4726bddSHONG Yifan
7*d4726bddSHONG Yifanrust_register_toolchains()
8*d4726bddSHONG Yifan
9*d4726bddSHONG Yifanload("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
10*d4726bddSHONG Yifan
11*d4726bddSHONG Yifancrate_universe_dependencies(bootstrap = True)
12*d4726bddSHONG Yifan
13*d4726bddSHONG Yifanload("//crate_universe/tools/cross_installer:cross_installer_deps.bzl", "cross_installer_deps")
14*d4726bddSHONG Yifan
15*d4726bddSHONG Yifancross_installer_deps()
16*d4726bddSHONG Yifan
17*d4726bddSHONG Yifan# buildifier: disable=bzl-visibility
18*d4726bddSHONG Yifanload("@rules_rust//proto/prost/private:repositories.bzl", "rust_prost_dependencies", "rust_prost_register_toolchains")
19*d4726bddSHONG Yifan
20*d4726bddSHONG Yifanrust_prost_dependencies()
21*d4726bddSHONG Yifan
22*d4726bddSHONG Yifanrust_prost_register_toolchains()
23*d4726bddSHONG Yifan
24*d4726bddSHONG Yifanload("@rules_rust//proto/prost:transitive_repositories.bzl", "rust_prost_transitive_repositories")
25*d4726bddSHONG Yifan
26*d4726bddSHONG Yifanrust_prost_transitive_repositories()
27*d4726bddSHONG Yifan
28*d4726bddSHONG Yifanload("@rules_rust//proto/protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains")
29*d4726bddSHONG Yifan
30*d4726bddSHONG Yifanrust_proto_protobuf_dependencies()
31*d4726bddSHONG Yifan
32*d4726bddSHONG Yifanrust_proto_protobuf_register_toolchains()
33*d4726bddSHONG Yifan
34*d4726bddSHONG Yifanload("@rules_rust//proto/protobuf:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories")
35*d4726bddSHONG Yifan
36*d4726bddSHONG Yifanrust_proto_protobuf_transitive_repositories()
37*d4726bddSHONG Yifan
38*d4726bddSHONG Yifanload("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains")
39*d4726bddSHONG Yifan
40*d4726bddSHONG Yifanrust_bindgen_dependencies()
41*d4726bddSHONG Yifan
42*d4726bddSHONG Yifanrust_bindgen_register_toolchains()
43*d4726bddSHONG Yifan
44*d4726bddSHONG Yifanload("@rules_rust//bindgen:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies")
45*d4726bddSHONG Yifan
46*d4726bddSHONG Yifanrust_bindgen_transitive_dependencies()
47*d4726bddSHONG Yifan
48*d4726bddSHONG Yifanload("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies")
49*d4726bddSHONG Yifan
50*d4726bddSHONG Yifanrust_analyzer_dependencies()
51*d4726bddSHONG Yifan
52*d4726bddSHONG Yifanload("@rules_rust//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_repositories")
53*d4726bddSHONG Yifan
54*d4726bddSHONG Yifanrust_wasm_bindgen_repositories()
55*d4726bddSHONG Yifan
56*d4726bddSHONG Yifanload("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
57*d4726bddSHONG Yifan
58*d4726bddSHONG Yifanbazel_skylib_workspace()
59*d4726bddSHONG Yifan
60*d4726bddSHONG Yifanload("//test:deps.bzl", "rules_rust_test_deps")
61*d4726bddSHONG Yifan
62*d4726bddSHONG Yifanrules_rust_test_deps()
63*d4726bddSHONG Yifan
64*d4726bddSHONG Yifanload("//test:deps_transitive.bzl", "rules_rust_test_deps_transitive")
65*d4726bddSHONG Yifan
66*d4726bddSHONG Yifanrules_rust_test_deps_transitive()
67*d4726bddSHONG Yifan
68*d4726bddSHONG Yifan# --- end stardoc
69*d4726bddSHONG Yifan
70*d4726bddSHONG Yifanload("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
71*d4726bddSHONG Yifan
72*d4726bddSHONG Yifanhttp_archive(
73*d4726bddSHONG Yifan    name = "bazel_ci_rules",
74*d4726bddSHONG Yifan    sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e",
75*d4726bddSHONG Yifan    strip_prefix = "bazelci_rules-1.0.0",
76*d4726bddSHONG Yifan    url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz",
77*d4726bddSHONG Yifan)
78*d4726bddSHONG Yifan
79*d4726bddSHONG Yifan# To run with RBE on Bazel CI, uncomment the following lines.
80*d4726bddSHONG Yifan#
81*d4726bddSHONG Yifan# load("@bazel_ci_rules//:rbe_repo.bzl", "rbe_preconfig")
82*d4726bddSHONG Yifan# rbe_preconfig(name = "buildkite_config", toolchain = "ubuntu2004-bazel-java11")
83*d4726bddSHONG Yifan
84*d4726bddSHONG Yifanhttp_archive(
85*d4726bddSHONG Yifan    name = "rules_testing",
86*d4726bddSHONG Yifan    sha256 = "02c62574631876a4e3b02a1820cb51167bb9cdcdea2381b2fa9d9b8b11c407c4",
87*d4726bddSHONG Yifan    strip_prefix = "rules_testing-0.6.0",
88*d4726bddSHONG Yifan    url = "https://github.com/bazelbuild/rules_testing/releases/download/v0.6.0/rules_testing-v0.6.0.tar.gz",
89*d4726bddSHONG Yifan)
90*d4726bddSHONG Yifan
91*d4726bddSHONG Yifanload("//test/3rdparty/crates:crates.bzl", test_crate_repositories = "crate_repositories")
92*d4726bddSHONG Yifan
93*d4726bddSHONG Yifantest_crate_repositories()
94