forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#133208 - ferrocene:split-copyright-html, r=…
…Kobzol generate-copyright: Now generates a library file too. We only run reuse once, so the output has to be filtered to find only the files that are relevant to the library tree. Outputs COPYRIGHT.html and COPYRIGHT-library.html. The license-metadata.json file is also now in the tree. We need a CI tool to check that it's correct. r? kobzol Remaining steps: * [ ] Teach CI to double-check the license-metadata.json file is correct * [ ] Add the COPYRIGHT.html and COPYRIGHT-license.html to the releases
- Loading branch information
Showing
4 changed files
with
181 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
53 changes: 53 additions & 0 deletions
53
src/tools/generate-copyright/templates/COPYRIGHT-library.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Copyright notices for The Rust Standard Library</title> | ||
</head> | ||
<body> | ||
|
||
<h1>Copyright notices for The Rust Standard Library</h1> | ||
|
||
<p>This file describes the copyright and licensing information for the Rust | ||
Standard Library source code within The Rust Project git tree, and the | ||
third-party dependencies used when building the Rust Standard Library.</p> | ||
|
||
<h2>Table of Contents</h2> | ||
<ul> | ||
<li><a href="#in-tree-files">In-tree files</a></li> | ||
<li><a href="#out-of-tree-dependencies">Out-of-tree dependencies</a></li> | ||
</ul> | ||
|
||
<h2 id="in-tree-files">In-tree files</h2> | ||
|
||
<p>The following licenses cover the in-tree source files that were used in this | ||
release:</p> | ||
|
||
{{ in_tree|safe }} | ||
|
||
<h2 id="out-of-tree-dependencies">Out-of-tree dependencies</h2> | ||
|
||
<p>The following licenses cover the out-of-tree crates that were used in the | ||
Rust Standard Library in this release:</p> | ||
|
||
{% for (key, value) in dependencies %} | ||
<h3>📦 {{key.name}}-{{key.version}}</h3> | ||
<p><b>URL:</b> <a href="https://crates.io/crates/{{ key.name }}/{{ key.version }}">https://crates.io/crates/{{ key.name }}/{{ key.version }}</a></p> | ||
<p><b>Authors:</b> {{ value.authors|join(", ") }}</p> | ||
<p><b>License:</b> {{ value.license }}</p> | ||
{% let len = value.notices.len() %} | ||
{% if len > 0 %} | ||
<p><b>Notices:</b> | ||
{% for (notice_name, notice_text) in value.notices %} | ||
<details> | ||
<summary><code>{{ notice_name }}</code></summary> | ||
<pre> | ||
{{ notice_text }} | ||
</pre> | ||
</details> | ||
{% endfor %} | ||
</p> | ||
{% endif %} | ||
{% endfor %} | ||
</body> | ||
</html> |