-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
33 lines (26 loc) · 1.17 KB
/
MODULE.bazel
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
29
30
31
32
33
module(name = "buildutils")
###############################################################################
# Bazel Dependencies https://registry.bazel.build/
###############################################################################
bazel_dep(name = "aspect_bazel_lib", version = "2.10.0")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_rust", version = "0.56.0")
# Toolchains
bazel_dep(name = "toolchains_musl", version = "0.1.20", dev_dependency = True)
###############################################################################
# Rust toolchain https://github.com/bazelbuild/rules_rust/releases
###############################################################################
RUST_EDITION = "2021" # NOTE: 2024 will be released with Rust 1.85.0
RUST_VERSION = "1.84.0"
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = RUST_EDITION,
extra_target_triples = [
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-musl",
],
versions = [RUST_VERSION],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
# Rust dependencies; see thirdparty/BUILD.bazel