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