Repository navigation
docs(readme): install the crates with cargo add - #408
Merged
muscariello merged 1 commit intoOct 31, 2026
Merged
Conversation
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]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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); thea2a-client,a2a-pb,a2a-grpcanda2a-slimrpcsnippets install an old release next to a second copy ofa2a-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-grpcanda2a-slimrpcnow usecargo add, which picks the current release and does not go stale with the next one.--rename a2a/--rename a2a-client/--rename a2a-serverkeep the import names the READMEs and examples use.a2a/README.mdis also the crate's rustdoc (include_str!); the new block issh, so it adds no doctest.Verification
In an empty crate,
cargo add a2a-lf --rename a2afollowed bycargo addofa2a-server-lf --rename a2a-server,a2a-client-lf --rename a2a-client,a2a-grpcora2a-pbresolves to the current release with a singlea2a-lf0.4.2 in each case (cargo tree -dlists 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