-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 build/COPYRIGHT.html and build/COPYRIGHT-library.html.
- Loading branch information
1 parent
e6c1e14
commit 9dfc682
Showing
4 changed files
with
180 additions
and
28 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> |