You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding custom rules is quite a fundamental part of a build system, but as far as I can tell the API for rule() is not documented at all. The best you get is a single example in this page:
Ah you're right. That has a really confusing structure - it's not listed at all in the tree on the left and it's not obvious that the heading (Starlark APIs, Build APIs, etc.) actually has a load of the documentation.
Also unfortunately the documentation you linked doesn't actually document anything (except the types). E.g. what does is_toolchain_rule do?
I agree with Tim, this is really not very discoverable for such a fundamental API, and a function signature without more than a trivial example in its docstring hardly counts as documentation :/
Adding custom rules is quite a fundamental part of a build system, but as far as I can tell the API for
rule()
is not documented at all. The best you get is a single example in this page:I tracked the source to here which lists all the parameters:
impl
attrs
cfg
doc
is_configuration_rule
is_toolchain_rule
uses_plugins
eval
The text was updated successfully, but these errors were encountered: