> ## Documentation Index
> Fetch the complete documentation index at: https://bazel-pr-30868.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# subrule_ctx {#modules.subrule_ctx}

A context object passed to the implementation function of a subrule.

## Members

* [actions](#actions)
* [fragments](#fragments)
* [label](#label)
* [toolchains](#toolchains)

<h2 id="actions">
  actions
</h2>

```
actions subrule_ctx.actions
```

Contains methods for declaring output files and the actions that produce them

<h2 id="fragments">
  fragments
</h2>

```
fragments subrule_ctx.fragments
```

Allows access to configuration fragments in target configuration.

<h2 id="label">
  label
</h2>

```
Label subrule_ctx.label
```

The label of the target currently being analyzed

<h2 id="toolchains">
  toolchains
</h2>

```
ToolchainContext subrule_ctx.toolchains
```

Contains methods for declaring output files and the actions that produce them
