Skip to content

Add crates.io publish metadata to Cargo.toml - #3

Merged
valenfys merged 1 commit into
mainfrom
add-crates-metadata
Sep 2, 2026
Merged

valenfys merged 1 commit into
mainfrom
add-crates-metadata

Conversation

@valenfys

@valenfys valenfys commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds description, repository, and readme fields to Cargo.toml, required/expected by crates.io for publishing.
  • Excludes examples/raw/*.CR2|.NEF|.RW2|.ARW sample RAW files from the published package via exclude — they're demo content for git clones, not needed for cargo install/build. Without this the packaged crate was 22.3MiB, over crates.io's default 10MiB upload cap.

Test plan

  • cargo package --list confirms the sample RAW files are no longer included (22 files vs. 26 before).
  • cargo publish --dry-run packages successfully at 167.6KiB (50.6KiB compressed), builds, and verifies.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AKmYgyL2p8FVFu9Wx13t4K

description and repository are required/expected by crates.io.
Excludes the examples/raw/* sample RAW files from the published
package -- they're git-clone demo content, not needed for
cargo install/build, and without excluding them the packaged
crate was 22MiB (crates.io's default upload cap is 10MiB).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKmYgyL2p8FVFu9Wx13t4K
@valenfys
valenfys merged commit 34bc9a7 into main Sep 2, 2026
3 checks passed
@valenfys
valenfys deleted the add-crates-metadata branch September 2, 2026 13:50
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