Skip to content

docs(readme): install the crates with cargo add - #408

Merged
muscariello merged 1 commit into
a2aproject:mainfrom
gulldan:docs/readme-current-versions
Oct 31, 2026
Merged

muscariello merged 1 commit into
a2aproject:mainfrom
gulldan:docs/readme-current-versions

Conversation

@gulldan

@gulldan gulldan commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #403.

Problem

The "Install" block of each crate README — also the crate's page on crates.io — pinned the versions of early 2026. The a2a-server-lf = "0.1" snippet does not resolve at all (the oldest release is 0.2.6); the a2a-client, a2a-pb, a2a-grpc and a2a-slimrpc snippets install an old release next to a second copy of a2a-lf; a2a-lf = "0.2" installs 0.2.4 instead of 0.4.2.

Fix

The install blocks in a2a, a2a-client, a2a-server, a2a-pb, a2a-grpc and a2a-slimrpc now use cargo add, which picks the current release and does not go stale with the next one. --rename a2a / --rename a2a-client / --rename a2a-server keep the import names the READMEs and examples use. a2a/README.md is also the crate's rustdoc (include_str!); the new block is sh, so it adds no doctest.

Verification

In an empty crate, cargo add a2a-lf --rename a2a followed by cargo add of a2a-server-lf --rename a2a-server, a2a-client-lf --rename a2a-client, a2a-grpc or a2a-pb resolves to the current release with a single a2a-lf 0.4.2 in each case (cargo tree -d lists no second copy). CI steps on Linux, stable 1.99.1 — cargo metadata --locked, cargo hack check --all-targets --each-feature, cargo fmt --check, cargo hack clippy --all-targets --each-feature -- -D warnings, cargo test --workspace --exclude itk-rust-current-agent (doc tests included), copyright headers — all green.

🤖 Generated with Claude Code

Each crate README pinned versions from early 2026: the a2a-server-lf
snippet ("0.1") does not resolve at all, and the a2a-client-lf, a2a-pb
and a2a-grpc ones install 0.1.x next to a second copy of a2a-lf. The
install blocks now use `cargo add`, which picks the current release
and cannot go stale on the next one; `--rename` keeps the import names
the examples use.

Fixes: a2aproject#403

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: gulldan <[email protected]>
@gulldan
gulldan requested a review from a team as a code owner October 31, 2026 10:27

@muscariello muscariello left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@muscariello
muscariello added this pull request to the merge queue Oct 31, 2026
Merged via the queue into a2aproject:main with commit ab96c98 Oct 31, 2026
22 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: crate READMEs install stale versions; the a2a-server-lf snippet does not resolve

2 participants