Skip to content

rule() API is not documented at all #850

Open
@Timmmm

Description

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:

pascal_binary = rule(
    impl = pascal_binary_impl,
    attrs = {
        "deps": attrs.list(attrs.dep()),
        "src": attrs.source(),
    }
)

I tracked the source to here which lists all the parameters:

  • impl
  • attrs
  • cfg
  • doc
  • is_configuration_rule
  • is_toolchain_rule
  • uses_plugins
  • eval

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions