Documentation issue: General Rules: When to use genrule vs. rule ? #12781
Labels
help wanted
Someone outside the Bazel team could own this
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Configurability
platforms, toolchains, cquery, select(), config transitions
team-Documentation
Documentation improvements that cannot be directly linked to other team labels
type: documentation (cleanup)
Documentation URL: https://docs.bazel.build/versions/master/be/general.html#genrule
This documentation lacks guidance on whether, or in what situations, a
rule()
should be favored over agenrule()
(or vice-versa).IMHO,
rule
s are preferable because:genrule
s is obscure and harder to look up.doc
fields for documentation.I guess maybe
genrule
's terseness could be justified if the target and its generator are one-offs?But that's just my opinion. I'd prefer official guidance from Bazel Team, hence this issue.
The text was updated successfully, but these errors were encountered: