Skip to content

Commit

Permalink
Add comments to exports.bzl
Browse files Browse the repository at this point in the history
RELNOTES: None
PiperOrigin-RevId: 425580068
  • Loading branch information
hlopko authored and copybara-github committed Feb 1, 2022
1 parent 26f766b commit b3a060e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/starlark/builtins_bzl/common/exports.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ exported_toplevels = {
# "original value".
"_builtins_dummy": "overridden value",
}

# A list of Starlarkified native rules.
#
# * leading `+` means the Starlark rule is used by default, but can be overridden
# on the Bazel command line
# * no leading symbol means the Starlark rule is used and can't be overridden
# * leading `-` means the Starlark rule exists, but is not used by default
exported_rules = {
"+cc_import": cc_import,
"-java_lite_proto_library": java_lite_proto_library,
Expand All @@ -44,6 +51,8 @@ exported_rules = {
"-cc_binary": cc_binary,
"-cc_test": cc_test,
}

# A list of Starlark functions callable from native rules implementation.
exported_to_java = {
"register_compile_and_archive_actions_for_j2objc": compilation_support.register_compile_and_archive_actions_for_j2objc,
"create_proto_compile_action": proto_common.create_proto_compile_action,
Expand Down

0 comments on commit b3a060e

Please sign in to comment.