Skip to content

Commit 3c48c89

Browse files
committed
tidy: Add some clarifying comments in license checks.
1 parent bc738f2 commit 3c48c89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/tidy/src/deps.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use cargo_metadata::{Metadata, Package, PackageId, Resolve};
44
use std::collections::{BTreeSet, HashSet};
55
use std::path::Path;
66

7+
/// These are licenses that are allowed for all crates, including the runtime,
8+
/// rustc, tools, etc.
79
const LICENSES: &[&str] = &[
810
"MIT/Apache-2.0",
911
"MIT / Apache-2.0",
@@ -58,6 +60,9 @@ const RUNTIME_CRATES: &[&str] = &["std", "core", "alloc", "panic_abort", "panic_
5860
const WHITELIST_CRATES: &[&str] = &["rustc", "rustc_codegen_llvm"];
5961

6062
/// Whitelist of crates rustc is allowed to depend on. Avoid adding to the list if possible.
63+
///
64+
/// This list is here to provide a speed-bump to adding a new dependency to
65+
/// rustc. Please check with the compiler team before adding an entry.
6166
const WHITELIST: &[&str] = &[
6267
"adler32",
6368
"aho-corasick",

0 commit comments

Comments
 (0)