Function: bazel-show-consuming-rule

bazel-show-consuming-rule is a function alias and interactive for bazel-show-consuming-target, defined in bazel.el.

This command is obsolete since 2026-04-16; use bazel-show-consuming-target instead.

Signature

(bazel-show-consuming-rule)

Documentation

Find the definition of the rule target consuming the current file.

The current buffer must visit a file, and the file must be in a Bazel repository. Use ‘xref-show-definitions-function’ to display the rule target definition. Right now, perform a best-effort attempt for finding the consuming rule target by a textual search in the BUILD file.

Key Bindings

This command is not in any keymaps.

Aliases

bazel-show-consuming-target