Devin Jeanpierre | dff1e70 | 2023-02-28 14:27:10 -0800 | [diff] [blame] | 1 | load( |
| 2 | "//rs_bindings_from_cc/bazel_support:crubit_feature_hint.bzl", |
| 3 | "crubit_feature_hint", |
| 4 | ) |
Jing Lu | 44f03fa | 2023-08-29 07:20:14 -0700 | [diff] [blame] | 5 | load("@rules_license//rules:license.bzl", "license") |
Googler | d186e22 | 2023-02-02 15:36:56 -0800 | [diff] [blame] | 6 | |
| 7 | package( |
Lukasz Anforowicz | aaa2a0f | 2023-04-11 09:01:14 -0700 | [diff] [blame] | 8 | default_applicable_licenses = ["//:license"], |
Googler | d186e22 | 2023-02-02 15:36:56 -0800 | [diff] [blame] | 9 | default_visibility = ["//visibility:private"], |
| 10 | ) |
| 11 | |
| 12 | license( |
| 13 | name = "license", |
| 14 | package_name = "crubit", |
| 15 | ) |
Googler | 6c3de12 | 2022-03-28 11:40:41 +0000 | [diff] [blame] | 16 | |
| 17 | licenses(["notice"]) |
| 18 | |
| 19 | exports_files(["LICENSE"]) |
Devin Jeanpierre | dff1e70 | 2023-02-28 14:27:10 -0800 | [diff] [blame] | 20 | |
| 21 | _SUPPORTED_FEATURES = [ |
| 22 | "supported", |
| 23 | ] |
| 24 | |
| 25 | # Aspect hints |
| 26 | |
| 27 | # Enable all Crubit features. |
| 28 | # TODO(jeanpierreda): Write compatibility doc to link here, guiding how to support Crubit / when to use |
| 29 | # `:supported`. |
| 30 | crubit_feature_hint( |
| 31 | name = "supported", |
| 32 | crubit_features = _SUPPORTED_FEATURES, |
| 33 | visibility = ["//visibility:public"], |
| 34 | ) |
| 35 | |
| 36 | # Enable experimental/unstable crubit features. Also includes `:supported`. |
| 37 | crubit_feature_hint( |
| 38 | name = "experimental", |
| 39 | crubit_features = _SUPPORTED_FEATURES + ["experimental"], |
Devin Jeanpierre | dff6528 | 2023-03-14 20:32:28 -0700 | [diff] [blame] | 40 | visibility = [ |
| 41 | "//:__subpackages__", |
Jing Lu | 107be16 | 2023-07-06 01:50:22 -0700 | [diff] [blame] | 42 | "//security/ise_cloud/projects/safe_json_parsing:__subpackages__", |
Devin Jeanpierre | dff6528 | 2023-03-14 20:32:28 -0700 | [diff] [blame] | 43 | ], |
Devin Jeanpierre | dff1e70 | 2023-02-28 14:27:10 -0800 | [diff] [blame] | 44 | ) |