# `archive_extract`

Extract a local ZIP archive into a cacheable directory.

## Attributes

| Attribute | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | string | yes | Package-relative ZIP archive |

`source` is not configurable by platform select. Declare the archive as a source
input so changing its contents invalidates extraction.

## Providers and capabilities

The target emits the `artifact` provider with an `artifact_root` directory and
exposes `build` with `default` and `artifact` output groups. Dependencies can use
the extracted directory during their analysis.

This target reads a local ZIP. Use [`archive_download`](/reference/prelude/archive_download)
when the archive must first be downloaded and checksum-verified. Neither target
resolves package versions or publishes a native lockfile.

## Example

```toml
[[target]]
name = "local-archive"
kind = "archive_extract"
srcs = ["dependency.zip"]

[target.attrs]
source = "dependency.zip"
```
