1load("@rules_rust//rust:toolchain.bzl", "rust_toolchain")
2
3rust_toolchain(
4    name = "rust_toolchain",
5    binary_ext = "",
6    cargo = "@nix_rust//:cargo",
7    clippy_driver = "@nix_rust//:clippy_driver",
8    default_edition = "2021",
9    dylib_ext = ".so",
10    env = {},
11    exec_triple = "x86_64-unknown-nixos-gnu",
12    extra_exec_rustc_flags = [],
13    extra_rustc_flags = [],
14    rust_doc = "@nix_rust//:rustdoc",
15    rust_std = "@nix_rust//:rust_std-aarch64-linux-android",
16    rustc = "@nix_rust//:rustc",
17    rustc_lib = "@nix_rust//:rustc_lib",
18    staticlib_ext = ".a",
19    stdlib_linkflags = [],
20    tags = ["manual"],
21    target_triple = "aarch64-linux-android",
22)
23
24toolchain(
25    name = "toolchain",
26    exec_compatible_with = [
27        "@platforms//cpu:x86_64",
28        "@platforms//os:nixos",
29    ],
30    target_compatible_with = [
31        "@platforms//cpu:aarch64",
32        "@platforms//os:android",
33    ],
34    toolchain = ":rust_toolchain",
35    toolchain_type = "@rules_rust//rust:toolchain_type",
36)
37