xref: /aosp_15_r20/external/bazelbuild-rules_rust/examples/bzlmod/ffi/MODULE.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1*d4726bddSHONG Yifanmodule(
2*d4726bddSHONG Yifan    name = "ffi",
3*d4726bddSHONG Yifan    version = "0.0.0",
4*d4726bddSHONG Yifan)
5*d4726bddSHONG Yifan
6*d4726bddSHONG Yifan###############################################################################
7*d4726bddSHONG Yifan# B A Z E L  C E N T R A L  R E G I S T R Y # https://registry.bazel.build/
8*d4726bddSHONG Yifan###############################################################################
9*d4726bddSHONG Yifan# https://github.com/bazelbuild/rules_rust/releases
10*d4726bddSHONG Yifanbazel_dep(name = "rules_rust", version = "0.46.0")
11*d4726bddSHONG Yifanlocal_path_override(
12*d4726bddSHONG Yifan    module_name = "rules_rust",
13*d4726bddSHONG Yifan    path = "../../..",
14*d4726bddSHONG Yifan)
15*d4726bddSHONG Yifan
16*d4726bddSHONG Yifan###############################################################################
17*d4726bddSHONG Yifan# T O O L C H A I N S
18*d4726bddSHONG Yifan###############################################################################
19*d4726bddSHONG Yifan
20*d4726bddSHONG Yifan# Rust toolchain
21*d4726bddSHONG YifanRUST_EDITION = "2021"
22*d4726bddSHONG Yifan
23*d4726bddSHONG YifanRUST_VERSION = "1.79.0"
24*d4726bddSHONG Yifan
25*d4726bddSHONG Yifanrust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
26*d4726bddSHONG Yifanrust.toolchain(
27*d4726bddSHONG Yifan    edition = RUST_EDITION,
28*d4726bddSHONG Yifan    versions = [RUST_VERSION],
29*d4726bddSHONG Yifan)
30*d4726bddSHONG Yifanuse_repo(rust, "rust_toolchains")
31*d4726bddSHONG Yifan
32*d4726bddSHONG Yifanregister_toolchains("@rust_toolchains//:all")
33