fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
3cc41db3
0.9.0
1"""This file contains definitions of all current incompatible flags. 2 3See COMPATIBILITY.md for the backwards compatibility policy. 4""" 5 6IncompatibleFlagInfo = provider ( 7doc = "Provider for the current value of an incompatible flag." , 8fields = { 9"enabled" : "(bool) whether the flag is enabled" , 10"issue" : "(string) link to the github issue associated with this flag" , 11}, 12) 13 14def _incompatible_flag_impl ( ctx ): 15return [ IncompatibleFlagInfo ( enabled = ctx . build_setting_value , issue = ctx . attr . issue )] 16 17incompatible_flag = rule ( 18doc = "A rule defining an incompatible flag." , 19implementation = _incompatible_flag_impl , 20build_setting = config . bool ( flag = True ), 21attrs = { 22"issue" : attr . string ( 23doc = "The link to the github issue associated with this flag" , 24mandatory = True , 25), 26}, 27)