Repository navigation
build: ship license texts with every published crate - #375
Merged
Merged
Conversation
Every crate in release-crates.json now packages copies of the root LICENSE-MIT and LICENSE-APACHE. They are copies, not symlinks: with core.symlinks=false (the Git for Windows default) Cargo packages a symlink as a file holding the link path. j2k-cuda-build-support and j2k-jpegls add both files to their include lists. j2k-native's Hayro license texts move to LICENSE-MIT.Hayro and LICENSE-APACHE.Hayro so the workspace copies can take the standard names. A new repo-lint policy checks that each published crate's copies are regular files byte-identical to the root files and that `cargo package --list` shows them.
jcwal1516
force-pushed
the
stage/13-crate-licenses
branch
2 times, most recently
from
December 2, 2026 19:04
5b5692d to
6868cbf
Compare
jcwal1516
marked this pull request as ready for review
December 2, 2026 19:08
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.
What and why
Each published crate should carry the workspace license texts in its own
package. This layer adds byte-identical
LICENSE-MITandLICENSE-APACHEcopies to every published crate, retains Hayro's licensetexts in
j2k-native, and teaches repo-lint to verify both the copies andcargo package --list.Use regular files instead of symlinks so Windows checkouts and crates.io
packages contain the license text itself.
This layer is based on the prebuilt CUDA PTX PR below it.
Impact
!to the title)data, source noted in a README and NOTICES.md)
Testing
Repo-lint verifies every published crate has regular, byte-identical
workspace license files.
Package-list tests verify every crates.io archive includes both files.
cargo xtask repo-lintandcargo xtask release-integritypassed on theexact stacked head.
cargo xtask package: pending.Bug fix: added license-copy and package-content checks
User-visible change: added a
CHANGELOG.mdentry underUnreleased