xref: /aosp_15_r20/external/bazelbuild-rules_rust/rust/platform/channel/BUILD.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1package(default_visibility = ["//visibility:public"])
2
3# Allows toolchains and targets to constrain themselves based on Rust release
4# channels, for example when depending on features only available in Nightly.
5#
6# https://doc.rust-lang.org/book/appendix-07-nightly-rust.html
7constraint_setting(name = "channel")
8
9constraint_value(
10    name = "beta",
11    constraint_setting = ":channel",
12)
13
14constraint_value(
15    name = "nightly",
16    constraint_setting = ":channel",
17)
18
19constraint_value(
20    name = "stable",
21    constraint_setting = ":channel",
22)
23