resource_sets
Utilities for rules that expose resource_set on ctx.actions.run[_shell]
Workaround for https://github.com/bazelbuild/bazel/issues/15187
Note, this workaround only provides some fixed values for either CPU or Memory.
Rule authors who are ALSO the BUILD author might know better, and can write custom resource_set functions for use within their own repository. This seems to be the use case that Google engineers imagined.
Macros and Functions
resource_set
Example usage (generated):
load("@aspect_bazel_lib//lib:resource_sets.bzl", "resource_set")
resource_set(
attr = None,
)
attr
Required.