Rollup merge of #41918 - brson:lic, r=alexcrichton

Annotate the license exceptions
This commit is contained in:
Mark Simulacrum 2017-05-12 18:57:32 -06:00 committed by GitHub
commit cde12ee198

View File

@ -23,12 +23,15 @@ static LICENSES: &'static [&'static str] = &[
"Unlicense/MIT",
];
/// These MPL licensed projects are acceptable, but only these.
// These are exceptions to Rust's permissive licensing policy, and
// should be considered bugs. Exceptions are only allowed in Rust
// tooling. It is _crucial_ that no exception crates be dependencies
// of the Rust runtime (std / test).
static EXCEPTIONS: &'static [&'static str] = &[
"mdbook",
"openssl",
"pest",
"thread-id",
"mdbook", // MPL2, mdbook
"openssl", // BSD+advertising clause, cargo, mdbook
"pest", // MPL2, mdbook via handlebars
"thread-id", // Apache-2.0, mdbook
];
pub fn check(path: &Path, bad: &mut bool) {