# Update Emitter

> Update Emitter is an Agent Skill for development published in the Azure/azure-sdk-for-rust repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Update the TypeSpec emitter for Rust and optionally regenerate all clients

- Skill name: `update-emitter`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/Azure/azure-sdk-for-rust/blob/HEAD/.github/skills/update-emitter/SKILL.md
- Repository: Azure/azure-sdk-for-rust (881 GitHub stars when collected)

## SKILL.md

Run `eng/scripts/Update-Emitter.ps1` to update `eng/emitter-package.json` to the latest `@azure-tools/typespec-rust` version and regenerate the lock file.

## Regenerating clients

After updating the emitter, service crates should be regenerated to pick up the new version.

Service owners should regenerate only their own service crates. To regenerate a single crate, run `tsp-client update` from within the crate directory:

```bash
cd sdk/{service-directory}/{crate-directory}
tsp-client update
```

To regenerate all crates under a service directory:

```bash
find sdk/{service-directory} -name tsp-location.yaml -execdir tsp-client update \;
```

## After regenerating

- Build and test each affected crate to verify correctness.
- Review any changes to public APIs and update each crate's `CHANGELOG.md` accordingly.

---

Source: https://www.openparable.com/skill/development/update-emitter (OpenParable). Cite the canonical URL above.
