Skip to content

Exclude the book from published crates#1089

Merged
MichaReiser merged 1 commit into
salsa-rs:masterfrom
musicinmybrain:no-book-in-crate
Apr 27, 2026
Merged

Exclude the book from published crates#1089
MichaReiser merged 1 commit into
salsa-rs:masterfrom
musicinmybrain:no-book-in-crate

Conversation

@musicinmybrain

Copy link
Copy Markdown
Contributor

This has a couple of advantages.

Most obviously, this greatly reduces the sizes of the published crates, and doing so comes at no cost since nothing else in the crate references the contents of book/. Before this PR:

$ cargo publish --dry-run
[…]
    Packaged 347 files, 2.6MiB (696.8KiB compressed)
[…]

After this PR:

    Packaged 286 files, 1.2MiB (251.9KiB compressed)

Less obviously, the presence of book/mermaid.css and book/mermaid.min.js complicates the source license situation of the published crates. These files aren’t compiled into libraries or executables, but merely having them in the source means that people like me (working on a rust-salsa package for Fedora) do have to worry about whether their licenses are properly documented, properly attributed, and allowable, including both mermaid itself and any NPM dependencies bundled into mermaid.min.js. Excluding these unnecessary sources from the crate makes all of these annoyances disappear.

@netlify

netlify Bot commented Apr 27, 2026

Copy link
Copy Markdown

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit bc04068
🔍 Latest deploy log https://app.netlify.com/projects/salsa-rs/deploys/69ef66ee332be80008cfac7c

1 similar comment
@netlify

netlify Bot commented Apr 27, 2026

Copy link
Copy Markdown

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit bc04068
🔍 Latest deploy log https://app.netlify.com/projects/salsa-rs/deploys/69ef66ee332be80008cfac7c

@MichaReiser

Copy link
Copy Markdown
Contributor

Thank you

@MichaReiser MichaReiser enabled auto-merge April 27, 2026 13:41
@MichaReiser MichaReiser added this pull request to the merge queue Apr 27, 2026
Merged via the queue into salsa-rs:master with commit f8e29a4 Apr 27, 2026
12 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 25, 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.

2 participants