Skip to content

Commit 084b67f

Browse files
committed
Annotate the license exceptions
1 parent 2cc3358 commit 084b67f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/tools/tidy/src/deps.rs

+8-5
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ static LICENSES: &'static [&'static str] = &[
2323
"Unlicense/MIT",
2424
];
2525

26-
/// These MPL licensed projects are acceptable, but only these.
26+
// These are exceptions to Rust's permissive licensing policy, and
27+
// should be considered bugs. Exceptions are only allowed in Rust
28+
// tooling. It is _crucial_ that no exception crates be dependencies
29+
// of the Rust runtime (std / test).
2730
static EXCEPTIONS: &'static [&'static str] = &[
28-
"mdbook",
29-
"openssl",
30-
"pest",
31-
"thread-id",
31+
"mdbook", // MPL2, mdbook
32+
"openssl", // BSD+advertising clause, cargo, mdbook
33+
"pest", // MPL2, mdbook via handlebars
34+
"thread-id", // Apache-2.0, mdbook
3235
];
3336

3437
pub fn check(path: &Path, bad: &mut bool) {

0 commit comments

Comments
 (0)