Commit 0be3dca
Ship the Rust standard library's COPYRIGHT file in release archives
The Rust standard library (std, core, alloc, compiler_builtins,
hashbrown, libc, etc.) is statically linked into every compiled Rust
binary. It is dual-licensed under Apache-2.0 OR MIT, and — unlike
GCC's runtime library — has no linking exception that would exempt
binary distributions from attribution requirements.
This is a known gap in the Rust ecosystem:
* "Does the standard library have linking exceptions to their
licensing?" — the answer is no.
https://internals.rust-lang.org/t/does-the-standard-library-have-linking-exceptions-to-their-licensing/11377
* "It's unclear exactly what license text must be included in a
Rust binary" — open since 2019, still unresolved.
rust-lang/rust#67014
The Rust toolchain ships a COPYRIGHT-library.html file at
$(rustc --print sysroot)/share/doc/rust/COPYRIGHT-library.html that
lists every component of the standard library, its license, its
copyright holders, and (for out-of-tree deps) the full license text.
Copy this file into each release archive as RUST-STDLIB-COPYRIGHT.html
so that anyone distributing gix/ein binaries has the attribution
material the license requires.
If a future toolchain version moves or removes the file, the step
warns but does not fail the build — the file is authoritative when
present but we should not break releases over a toolchain layout
change.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6938ff4 commit 0be3dca
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
306 | 320 | | |
307 | 321 | | |
308 | 322 | | |
| |||
0 commit comments