Skip to content

Dx/crates io metadata#302

Merged
Timi16 merged 2 commits intoTimi16:mainfrom
Mmesolove:dx/crates-io-metadata
Feb 25, 2026
Merged

Dx/crates io metadata#302
Timi16 merged 2 commits intoTimi16:mainfrom
Mmesolove:dx/crates-io-metadata

Conversation

@Mmesolove
Copy link
Contributor

@Mmesolove Mmesolove commented Feb 25, 2026

Closes #291


Summary
Adds all required metadata and configuration for publishing to crates.io.

Changes

  • ✅ Added required metadata fields to Cargo.toml (readme, homepage, documentation, exclude)
  • ✅ Created LICENSE-MIT and LICENSE-APACHE files
  • ✅ Added publish = false to workspace member crates
  • ✅ Extended GitHub Actions release workflow with publish-crate job
  • ✅ Converted relative links in README to absolute GitHub URLs for crates.io compatibility

Package Validation

  • Package size: 1.1MB (214.1KB compressed)
  • Files included: 159
  • All excluded patterns working correctly

Next Steps

Before the first release:

  1. Add CARGO_REGISTRY_TOKEN secret to GitHub repository settings
  2. Create and push a version tag (e.g., v0.1.0)
  3. The workflow will automatically publish to crates.io

Testing

  • cargo publish --dry-run validates successfully
  • ✅ Package contents verified
  • ✅ Exclude patterns working correctly

- Replaced unwrap() on Mutex lock in debug_server.rs with proper error handling
- Replaced expect() in executor.rs with Result propagation using ?
- Improved Default impl for PluginRegistry with fallback error handling
- Replaced unwrap() calls in snapshot.rs with defensive Option handling
- All changes maintain backward compatibility and improve error resilience
- Test code unwrap()/expect() calls intentionally left unchanged
- Add required metadata fields: readme, homepage, documentation, exclude
- Create LICENSE-MIT and LICENSE-APACHE files
- Add publish = false to workspace member crates
- Extend GitHub Actions release workflow with publish-crate job
- Convert relative links in README to absolute GitHub URLs
- Package size: 1.1MB (214.1KB compressed), 159 files
@Mmesolove
Copy link
Contributor Author

Please review

@Timi16
Copy link
Owner

Timi16 commented Feb 25, 2026

Please review
Running workflows

@Timi16 Timi16 merged commit af7bb03 into Timi16:main Feb 25, 2026
4 of 5 checks passed
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.

Add Cargo.toml Metadata and Prepare for crates.io Publish

2 participants