Prepare policy crate for publication to crates.io#427
Merged
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Prepare policy crate for publishing to crates.io
Prepare policy crate for publication to crates.io
Oct 22, 2025
Contributor
|
@copilot crates/policy/Cargo.toml:9 remove this |
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Contributor
Author
Mossaka
approved these changes
Oct 23, 2025
Mossaka
added a commit
to Mossaka/wassette
that referenced
this pull request
Feb 2, 2026
* Initial plan * Add README and crates.io metadata to policy crate Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Update CHANGELOG.md for policy crate publication preparation Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Remove documentation field and shorten README to under 100 lines Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
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.
This PR prepares the
policycrate for publication to crates.io, making it available as a standalone library for other projects to use.Overview
The policy crate is a well-isolated component that provides parsing and validation for capability-based security policies for MCP servers. It has no dependencies on other crates in this repository and is ready to be shared with the broader Rust ecosystem.
Changes Made
Added Concise README.md (99 lines)
Created
/crates/policy/README.mdwith essential documentation including:PolicyParserandPolicyDocumentUpdated Cargo.toml Metadata
Added all required metadata for crates.io publication:
Note: The
documentationfield is omitted as docs.rs will automatically generate and host documentation when the crate is published.Updated CHANGELOG.md
Added an entry to the Unreleased section documenting this preparation work.
Verification
All quality checks pass:
cargo package- No warningscargo test- All 40 unit tests + 5 doc tests passcargo clippy- No linting issuescargo doc- Documentation builds successfullycargo publish --dry-run- Ready for publicationPublishing
Once this PR is merged, a maintainer with crates.io credentials can publish the crate:
cd crates/policy cargo publishThis will make the policy crate available at:
The crate can then be used by policy-mcp and other projects that need capability-based security policy management.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.