Skip to content

Use package.include to reduce the size of the packaged crate#54

Merged
awxkee merged 1 commit into
awxkee:masterfrom
42triangles:master
Sep 11, 2025
Merged

Use package.include to reduce the size of the packaged crate#54
awxkee merged 1 commit into
awxkee:masterfrom
42triangles:master

Conversation

@42triangles

Copy link
Copy Markdown
Contributor

I came across this crate during a dependency review (where it was pulled in via imagemoxcmspxfm, thought he image version is yanked at the moment it appears the dependency will get added back in soon enough), and noticed that as is, this crate packages the jupyter notebooks, which aren't used to actually build the final published package.
This PR makes use of package.include to not package these files.

This reduces the uncompressed size from 4.7MiB to 3.4MiB (72%), and the compressed size from 1.2MiB to 836.3KiB (68.1%). Which might make sense especially if this does end up as a dependency for the image crate (via moxcms), as that likely will cause a lot of downloads.
Additionally, it makes auditing easier too.

This reduces the uncompressed size from 4.7MiB to 3.4MiB (72%), and the
compressed size from 1.2MiB to 836.3KiB (68.1%).

Additionally, it makes auditing easier too.

@awxkee awxkee left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I thought I had exclude set for the notes folder, but it appears I don’t.

@awxkee awxkee merged commit 3d03442 into awxkee:master Sep 11, 2025
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