# Subrule

{% dynamic setvar source_file "src/main/java/com/google/devtools/build/lib/starlarkbuildapi/StarlarkSubruleApi.java" %} {% dynamic setvar version "7.6.0" %} {% dynamic setvar original_path "/rules/lib/builtins/Subrule" %} {% include "_buttons.html" %} Experimental: a building block for writing rules with shared code. For more information, please see the subrule proposal: https://docs.google.com/document/d/1RbNC88QieKvBEwir7iV5zZU08AaMlOzxhVkPnmKDedQ