-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate-copyright: use rinja to format the output
I can't find a way to derive rinja::Template for Node - I think because it is a recursive type. So I rendered it manually using html_escape.
- Loading branch information
1 parent
dbab595
commit f7e6bf6
Showing
4 changed files
with
146 additions
and
152 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
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,54 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Copyright notices for The Rust Toolchain</title> | ||
</head> | ||
<body> | ||
|
||
<h1>Copyright notices for The Rust Toolchain</h1> | ||
|
||
<p>This file describes the copyright and licensing information for the source | ||
code within The Rust Project git tree, and the third-party dependencies used | ||
when building the Rust toolchain (including 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 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>In libstd:</b> {% if value.is_in_libstd.unwrap() %} Yes {% else %} No {% endif %}</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> |