OpenParable
Skip to content
← Back to skills

Update Emitter

Development
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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Azure/azure-sdk-for-rust/blob/HEAD/.github/skills/update-emitter/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/update-emitter, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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:

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

To regenerate all crates under a service directory:

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.