Skip to content

build: ship license texts with every published crate - #375

Merged
jcwal1516 merged 1 commit into
stage/12-cuda-prebuilt-ptxfrom
stage/13-crate-licenses
Dec 2, 2026
Merged

jcwal1516 merged 1 commit into
stage/12-cuda-prebuilt-ptxfrom
stage/13-crate-licenses

Conversation

@jcwal1516

@jcwal1516 jcwal1516 commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

What and why

Each published crate should carry the workspace license texts in its own
package. This layer adds byte-identical LICENSE-MIT and
LICENSE-APACHE copies to every published crate, retains Hayro's license
texts in j2k-native, and teaches repo-lint to verify both the copies and
cargo 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

  • Changes decoded, encoded, or transcoded output bytes
  • Changes a public API or behavior callers can see (if breaking, add ! to the title)
  • Changes how untrusted input is parsed, or how much memory or time it can use
  • Changes performance (command, hardware, and numbers under Testing)
  • Adds a test image or fixture (small, license allows committing it, no patient
    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-lint and cargo xtask release-integrity passed on the
    exact stacked head.

  • cargo xtask package: pending.

  • Bug fix: added license-copy and package-content checks

  • User-visible change: added a CHANGELOG.md entry under Unreleased

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
jcwal1516 added this pull request to stack #368 December 2, 2026 03:30
@jcwal1516 jcwal1516 changed the title stage/13 crate licenses build: ship license texts with every published crate Dec 2, 2026
@jcwal1516
jcwal1516 force-pushed the stage/13-crate-licenses branch 2 times, most recently from 5b5692d to 6868cbf Compare December 2, 2026 19:04
@jcwal1516
jcwal1516 marked this pull request as ready for review December 2, 2026 19:08
@jcwal1516
jcwal1516 removed this pull request from stack #368 December 2, 2026 20:01
@jcwal1516
jcwal1516 added this pull request to stack #386 December 2, 2026 20:01
@jcwal1516
jcwal1516 merged commit e8f8555 into main Dec 2, 2026
56 of 71 checks passed
@jcwal1516
jcwal1516 deleted the stage/13-crate-licenses branch December 2, 2026 20:01
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