xref: /aosp_15_r20/external/bazelbuild-rules_rust/MODULE.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1*d4726bddSHONG Yifan"""bazelbuild/rules_rust"""
2*d4726bddSHONG Yifan
3*d4726bddSHONG Yifanmodule(
4*d4726bddSHONG Yifan    name = "rules_rust",
5*d4726bddSHONG Yifan    version = "0.49.3",
6*d4726bddSHONG Yifan)
7*d4726bddSHONG Yifan
8*d4726bddSHONG Yifanbazel_dep(
9*d4726bddSHONG Yifan    name = "bazel_features",
10*d4726bddSHONG Yifan    version = "1.9.1",
11*d4726bddSHONG Yifan)
12*d4726bddSHONG Yifanbazel_dep(
13*d4726bddSHONG Yifan    name = "bazel_skylib",
14*d4726bddSHONG Yifan    version = "1.5.0",
15*d4726bddSHONG Yifan)
16*d4726bddSHONG Yifanbazel_dep(
17*d4726bddSHONG Yifan    name = "platforms",
18*d4726bddSHONG Yifan    version = "0.0.8",
19*d4726bddSHONG Yifan)
20*d4726bddSHONG Yifanbazel_dep(
21*d4726bddSHONG Yifan    name = "rules_cc",
22*d4726bddSHONG Yifan    version = "0.0.9",
23*d4726bddSHONG Yifan)
24*d4726bddSHONG Yifanbazel_dep(
25*d4726bddSHONG Yifan    name = "rules_license",
26*d4726bddSHONG Yifan    version = "0.0.8",
27*d4726bddSHONG Yifan)
28*d4726bddSHONG Yifanbazel_dep(
29*d4726bddSHONG Yifan    name = "rules_proto",
30*d4726bddSHONG Yifan    version = "6.0.2",
31*d4726bddSHONG Yifan)
32*d4726bddSHONG Yifanbazel_dep(
33*d4726bddSHONG Yifan    name = "apple_support",
34*d4726bddSHONG Yifan    version = "1.13.0",
35*d4726bddSHONG Yifan    repo_name = "build_bazel_apple_support",
36*d4726bddSHONG Yifan)
37*d4726bddSHONG Yifanbazel_dep(
38*d4726bddSHONG Yifan    name = "protobuf",
39*d4726bddSHONG Yifan    version = "21.7",
40*d4726bddSHONG Yifan    repo_name = "com_google_protobuf",
41*d4726bddSHONG Yifan)
42*d4726bddSHONG Yifanbazel_dep(
43*d4726bddSHONG Yifan    name = "aspect_rules_js",
44*d4726bddSHONG Yifan    version = "1.39.0",
45*d4726bddSHONG Yifan)
46*d4726bddSHONG Yifan
47*d4726bddSHONG Yifanbazel_dep(
48*d4726bddSHONG Yifan    name = "bazel_ci_rules",
49*d4726bddSHONG Yifan    version = "1.0.0",
50*d4726bddSHONG Yifan    dev_dependency = True,
51*d4726bddSHONG Yifan)
52*d4726bddSHONG Yifanbazel_dep(
53*d4726bddSHONG Yifan    name = "rules_python",
54*d4726bddSHONG Yifan    version = "0.31.0",
55*d4726bddSHONG Yifan    dev_dependency = True,
56*d4726bddSHONG Yifan)
57*d4726bddSHONG Yifanbazel_dep(
58*d4726bddSHONG Yifan    name = "rules_testing",
59*d4726bddSHONG Yifan    version = "0.6.0",
60*d4726bddSHONG Yifan    dev_dependency = True,
61*d4726bddSHONG Yifan)
62*d4726bddSHONG Yifan
63*d4726bddSHONG Yifaninternal_deps = use_extension("//rust/private:extensions.bzl", "i")
64*d4726bddSHONG Yifanuse_repo(
65*d4726bddSHONG Yifan    internal_deps,
66*d4726bddSHONG Yifan    "cargo_bazel.buildifier-darwin-amd64",
67*d4726bddSHONG Yifan    "cargo_bazel.buildifier-darwin-arm64",
68*d4726bddSHONG Yifan    "cargo_bazel.buildifier-linux-amd64",
69*d4726bddSHONG Yifan    "cargo_bazel.buildifier-linux-arm64",
70*d4726bddSHONG Yifan    "cargo_bazel.buildifier-windows-amd64.exe",
71*d4726bddSHONG Yifan    "cui",
72*d4726bddSHONG Yifan    "cui__anyhow-1.0.75",
73*d4726bddSHONG Yifan    "cui__camino-1.1.6",
74*d4726bddSHONG Yifan    "cui__cargo-lock-9.0.0",
75*d4726bddSHONG Yifan    "cui__cargo-platform-0.1.4",
76*d4726bddSHONG Yifan    "cui__cargo_metadata-0.18.1",
77*d4726bddSHONG Yifan    "cui__cargo_toml-0.19.2",
78*d4726bddSHONG Yifan    "cui__cfg-expr-0.15.5",
79*d4726bddSHONG Yifan    "cui__clap-4.3.11",
80*d4726bddSHONG Yifan    "cui__crates-index-2.2.0",
81*d4726bddSHONG Yifan    "cui__hex-0.4.3",
82*d4726bddSHONG Yifan    "cui__indoc-2.0.4",
83*d4726bddSHONG Yifan    "cui__itertools-0.12.0",
84*d4726bddSHONG Yifan    "cui__maplit-1.0.2",
85*d4726bddSHONG Yifan    "cui__normpath-1.1.1",
86*d4726bddSHONG Yifan    "cui__once_cell-1.19.0",
87*d4726bddSHONG Yifan    "cui__pathdiff-0.2.1",
88*d4726bddSHONG Yifan    "cui__regex-1.10.2",
89*d4726bddSHONG Yifan    "cui__semver-1.0.20",
90*d4726bddSHONG Yifan    "cui__serde-1.0.190",
91*d4726bddSHONG Yifan    "cui__serde_json-1.0.108",
92*d4726bddSHONG Yifan    "cui__serde_starlark-0.1.14",
93*d4726bddSHONG Yifan    "cui__sha2-0.10.8",
94*d4726bddSHONG Yifan    "cui__spdx-0.10.3",
95*d4726bddSHONG Yifan    "cui__spectral-0.6.0",
96*d4726bddSHONG Yifan    "cui__tempfile-3.8.1",
97*d4726bddSHONG Yifan    "cui__tera-1.19.1",
98*d4726bddSHONG Yifan    "cui__textwrap-0.16.0",
99*d4726bddSHONG Yifan    "cui__toml-0.8.10",
100*d4726bddSHONG Yifan    "cui__tracing-0.1.40",
101*d4726bddSHONG Yifan    "cui__tracing-subscriber-0.3.17",
102*d4726bddSHONG Yifan    "cui__url-2.5.2",
103*d4726bddSHONG Yifan    "generated_inputs_in_external_repo",
104*d4726bddSHONG Yifan    "libc",
105*d4726bddSHONG Yifan    "llvm-raw",
106*d4726bddSHONG Yifan    "rrra__anyhow-1.0.71",
107*d4726bddSHONG Yifan    "rrra__clap-4.3.11",
108*d4726bddSHONG Yifan    "rrra__env_logger-0.10.0",
109*d4726bddSHONG Yifan    "rrra__itertools-0.11.0",
110*d4726bddSHONG Yifan    "rrra__log-0.4.19",
111*d4726bddSHONG Yifan    "rrra__serde-1.0.171",
112*d4726bddSHONG Yifan    "rrra__serde_json-1.0.102",
113*d4726bddSHONG Yifan    "rules_rust_bindgen__bindgen-0.69.1",
114*d4726bddSHONG Yifan    "rules_rust_bindgen__bindgen-cli-0.69.1",
115*d4726bddSHONG Yifan    "rules_rust_bindgen__clang-sys-1.6.1",
116*d4726bddSHONG Yifan    "rules_rust_bindgen__clap-4.3.3",
117*d4726bddSHONG Yifan    "rules_rust_bindgen__clap_complete-4.3.1",
118*d4726bddSHONG Yifan    "rules_rust_bindgen__env_logger-0.10.0",
119*d4726bddSHONG Yifan    "rules_rust_prost",
120*d4726bddSHONG Yifan    "rules_rust_prost__h2-0.3.19",
121*d4726bddSHONG Yifan    "rules_rust_prost__heck",
122*d4726bddSHONG Yifan    "rules_rust_prost__prost-0.11.9",
123*d4726bddSHONG Yifan    "rules_rust_prost__prost-types-0.11.9",
124*d4726bddSHONG Yifan    "rules_rust_prost__protoc-gen-prost-0.2.2",
125*d4726bddSHONG Yifan    "rules_rust_prost__protoc-gen-tonic-0.2.2",
126*d4726bddSHONG Yifan    "rules_rust_prost__tokio-1.28.2",
127*d4726bddSHONG Yifan    "rules_rust_prost__tokio-stream-0.1.14",
128*d4726bddSHONG Yifan    "rules_rust_prost__tonic-0.9.2",
129*d4726bddSHONG Yifan    "rules_rust_proto__grpc-0.6.2",
130*d4726bddSHONG Yifan    "rules_rust_proto__grpc-compiler-0.6.2",
131*d4726bddSHONG Yifan    "rules_rust_proto__log-0.4.17",
132*d4726bddSHONG Yifan    "rules_rust_proto__protobuf-2.8.2",
133*d4726bddSHONG Yifan    "rules_rust_proto__protobuf-codegen-2.8.2",
134*d4726bddSHONG Yifan    "rules_rust_proto__tls-api-0.1.22",
135*d4726bddSHONG Yifan    "rules_rust_proto__tls-api-stub-0.1.22",
136*d4726bddSHONG Yifan    "rules_rust_test_load_arbitrary_tool",
137*d4726bddSHONG Yifan    "rules_rust_tinyjson",
138*d4726bddSHONG Yifan    "rules_rust_toolchain_test_target_json",
139*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__anyhow-1.0.71",
140*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__assert_cmd-1.0.8",
141*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__diff-0.1.13",
142*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__docopt-1.1.1",
143*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__env_logger-0.8.4",
144*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__log-0.4.19",
145*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__predicates-1.0.8",
146*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__rayon-1.7.0",
147*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__rouille-3.6.2",
148*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__serde-1.0.171",
149*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__serde_derive-1.0.171",
150*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__serde_json-1.0.102",
151*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__tempfile-3.6.0",
152*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__ureq-2.8.0",
153*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__walrus-0.20.3",
154*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__wasm-bindgen-0.2.92",
155*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.92",
156*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.92",
157*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__wasmparser-0.102.0",
158*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen__wasmprinter-0.2.60",
159*d4726bddSHONG Yifan    "rules_rust_wasm_bindgen_cli",
160*d4726bddSHONG Yifan)
161*d4726bddSHONG Yifan
162*d4726bddSHONG Yifanrust = use_extension("//rust:extensions.bzl", "rust")
163*d4726bddSHONG Yifanrust.toolchain(edition = "2021")
164*d4726bddSHONG Yifanuse_repo(rust, "rust_toolchains")
165*d4726bddSHONG Yifan
166*d4726bddSHONG Yifanregister_toolchains(
167*d4726bddSHONG Yifan    "@rust_toolchains//:all",
168*d4726bddSHONG Yifan)
169*d4726bddSHONG Yifan
170*d4726bddSHONG Yifanregister_toolchains(
171*d4726bddSHONG Yifan    "//proto/protobuf:default-proto-toolchain",
172*d4726bddSHONG Yifan)
173*d4726bddSHONG Yifan
174*d4726bddSHONG Yifanregister_toolchains(
175*d4726bddSHONG Yifan    "//proto/prost:default_prost_toolchain",
176*d4726bddSHONG Yifan)
177*d4726bddSHONG Yifan
178*d4726bddSHONG Yifanregister_toolchains(
179*d4726bddSHONG Yifan    "//bindgen:default_bindgen_toolchain",
180*d4726bddSHONG Yifan)
181*d4726bddSHONG Yifan
182*d4726bddSHONG Yifanrust_host_tools = use_extension("//rust:extensions.bzl", "rust_host_tools")
183*d4726bddSHONG Yifanuse_repo(rust_host_tools, "rust_host_tools")
184*d4726bddSHONG Yifan
185*d4726bddSHONG Yifancargo_bazel_bootstrap = use_extension("//crate_universe/private/module_extensions:cargo_bazel_bootstrap.bzl", "cargo_bazel_bootstrap")
186*d4726bddSHONG Yifanuse_repo(cargo_bazel_bootstrap, "cargo_bazel_bootstrap")
187