-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathrust.MODULE.bazel
More file actions
28 lines (25 loc) · 861 Bytes
/
rust.MODULE.bazel
File metadata and controls
28 lines (25 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
# Add an explicit riscv64gc Linux repository_set, because rules_rust 0.68.1's
# default toolchain triple table does not include riscv64gc-unknown-linux-gnu.
rust.repository_set(
name = "rust_linux_riscv64gc",
edition = "2021",
exec_triple = "riscv64gc-unknown-linux-gnu",
target_triple = "riscv64gc-unknown-linux-gnu",
versions = ["1.86.0"],
target_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:riscv64",
],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
rust_host_tools = use_extension("@rules_rust//rust:extensions.bzl", "rust_host_tools")
rust_host_tools.host_tools(
name = "rust_host_tools_nightly",
version = "nightly",
)
use_repo(
rust_host_tools,
"rust_host_tools_nightly",
)