Skip to content

feat!: update to rust-mcp-schema 0.10 with BTreeMap for deterministic serialization#137

Merged
hashemix merged 18 commits into
mainfrom
feat/update-mcp-schema-deterministic-serialization
Mar 13, 2026
Merged

feat!: update to rust-mcp-schema 0.10 with BTreeMap for deterministic serialization#137
hashemix merged 18 commits into
mainfrom
feat/update-mcp-schema-deterministic-serialization

Conversation

@hashemix
Copy link
Copy Markdown
Member

📌 Summary

Updates rust-mcp-schema dependency from v0.9.x to v0.10.0, which uses BTreeMap instead of HashMap. This ensures consistent JSON output regardless of insertion order, which is critical for reproducible snapshots, testing, and protocol consistency.

🔍 Related Issues

✨ Changes Made

  • Update rust-mcp-schema dependency from 0.9 to 0.10 in Cargo.toml
  • Replace HashMap with BTreeMap in rust-mcp-macros for schema properties
  • Replace HashMap with BTreeMap in mcp_elicit macro for result content
  • Update all test files to use BTreeMap instead of HashMap

🛠️ Testing Steps

run:

cargo make check

@hashemix hashemix changed the title feat: update to rust-mcp-schema 0.10 with BTreeMap for deterministic serialization feat!: update to rust-mcp-schema 0.10 with BTreeMap for deterministic serialization Mar 13, 2026
@hashemix hashemix merged commit 2e6df18 into main Mar 13, 2026
4 of 6 checks passed
@hashemix hashemix mentioned this pull request Mar 13, 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.

1 participant