Skip to content

Commit 088b59a

Browse files
authored
add license details with cargo-about (#658)
1 parent fb3fd21 commit 088b59a

File tree

4 files changed

+13183
-0
lines changed

4 files changed

+13183
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ But with log data growing exponentially, today's log data challenges involve who
9292
### Supported by
9393

9494
<a href="https://fossunited.org/" target="_blank"><img src="http://fossunited.org/files/fossunited-badge.svg"></a>
95+
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=cb5c7633-1c88-4792-be58-6228c476cef5" />

about.hbs

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<html>
2+
3+
<head>
4+
<style>
5+
@media (prefers-color-scheme: dark) {
6+
body {
7+
background: #333;
8+
color: white;
9+
}
10+
a {
11+
color: skyblue;
12+
}
13+
}
14+
.container {
15+
font-family: sans-serif;
16+
max-width: 800px;
17+
margin: 0 auto;
18+
}
19+
.intro {
20+
text-align: center;
21+
}
22+
.licenses-list {
23+
list-style-type: none;
24+
margin: 0;
25+
padding: 0;
26+
}
27+
.license-used-by {
28+
margin-top: -10px;
29+
}
30+
.license-text {
31+
max-height: 200px;
32+
overflow-y: scroll;
33+
white-space: pre-wrap;
34+
}
35+
</style>
36+
</head>
37+
38+
<body>
39+
<main class="container">
40+
<div class="intro">
41+
<h1>Third Party Licenses</h1>
42+
<p>This page lists the licenses of the projects used in cargo-about.</p>
43+
</div>
44+
45+
<h2>Overview of licenses:</h2>
46+
<ul class="licenses-overview">
47+
{{#each overview}}
48+
<li><a href="#{{id}}">{{name}}</a> ({{count}})</li>
49+
{{/each}}
50+
</ul>
51+
52+
<h2>All license text:</h2>
53+
<ul class="licenses-list">
54+
{{#each licenses}}
55+
<li class="license">
56+
<h3 id="{{id}}">{{name}}</h3>
57+
<h4>Used by:</h4>
58+
<ul class="license-used-by">
59+
{{#each used_by}}
60+
<li><a href="{{#if crate.repository}} {{crate.repository}} {{else}} https://crates.io/crates/{{crate.name}} {{/if}}">{{crate.name}} {{crate.version}}</a></li>
61+
{{/each}}
62+
</ul>
63+
<pre class="license-text">{{text}}</pre>
64+
</li>
65+
{{/each}}
66+
</ul>
67+
</main>
68+
</body>
69+
70+
</html>

about.toml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
accepted = [
2+
"Apache-2.0",
3+
"MIT",
4+
"BSD-3-Clause",
5+
"ISC",
6+
"MPL-2.0",
7+
"NOASSERTION",
8+
"AGPL-3.0",
9+
"GPL-3.0",
10+
"BSD-2-Clause",
11+
"BSL-1.0",
12+
"OpenSSL",
13+
"Unicode-DFS-2016",
14+
]
15+
16+
workarounds = [
17+
"ring",
18+
"rustls",
19+
]

0 commit comments

Comments
 (0)