Skip to content

Commit 8510865

Browse files
committed
Add a couple of licenses that are can be used as MIT, Apache-2.0 or as both
1 parent 3621785 commit 8510865

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/tools/tidy/src/deps.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,15 @@ const LICENSES: &[&str] = &[
3131
"Apache-2.0",
3232
"Apache-2.0/MIT",
3333
"BSD-2-Clause OR Apache-2.0 OR MIT", // zerocopy
34+
"BSD-2-Clause OR MIT OR Apache-2.0",
35+
"BSD-3-Clause/MIT",
36+
"CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception",
37+
"CC0-1.0 OR MIT-0 OR Apache-2.0",
3438
"ISC",
3539
"MIT / Apache-2.0",
3640
"MIT AND (MIT OR Apache-2.0)",
3741
"MIT AND Apache-2.0 WITH LLVM-exception AND (MIT OR Apache-2.0)", // compiler-builtins
42+
"MIT OR Apache-2.0 OR BSD-1-Clause",
3843
"MIT OR Apache-2.0 OR LGPL-2.1-or-later", // r-efi, r-efi-alloc; LGPL is not acceptable, but we use it under MIT OR Apache-2.0
3944
"MIT OR Apache-2.0 OR Zlib", // tinyvec_macros
4045
"MIT OR Apache-2.0",
@@ -171,9 +176,7 @@ pub(crate) const WORKSPACES: &[WorkspaceInfo<'static>] = &[
171176
const EXCEPTIONS: ExceptionList = &[
172177
// tidy-alphabetical-start
173178
("arrayref", "BSD-2-Clause"), // rustc
174-
("blake3", "CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception"), // rustc
175179
("colored", "MPL-2.0"), // rustfmt
176-
("constant_time_eq", "CC0-1.0 OR MIT-0 OR Apache-2.0"), // rustc
177180
("foldhash", "Zlib"), // rustc
178181
("option-ext", "MPL-2.0"), // cargo-miri (via `directories`)
179182
("ryu", "Apache-2.0 OR BSL-1.0"), // BSL is not acceptble, but we use it under Apache-2.0 // cargo/... (because of serde)
@@ -195,11 +198,7 @@ const EXCEPTIONS_CARGO: ExceptionList = &[
195198
// tidy-alphabetical-start
196199
("arrayref", "BSD-2-Clause"),
197200
("bitmaps", "MPL-2.0+"),
198-
("blake3", "CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception"),
199-
("constant_time_eq", "CC0-1.0 OR MIT-0 OR Apache-2.0"),
200-
("dunce", "CC0-1.0 OR MIT-0 OR Apache-2.0"),
201201
("encoding_rs", "(Apache-2.0 OR MIT) AND BSD-3-Clause"),
202-
("fiat-crypto", "MIT OR Apache-2.0 OR BSD-1-Clause"),
203202
("foldhash", "Zlib"),
204203
("im-rc", "MPL-2.0+"),
205204
("libz-rs-sys", "Zlib"),
@@ -224,8 +223,6 @@ const EXCEPTIONS_RUSTC_PERF: ExceptionList = &[
224223
// tidy-alphabetical-start
225224
("alloc-no-stdlib", "BSD-3-Clause"),
226225
("alloc-stdlib", "BSD-3-Clause"),
227-
("brotli", "BSD-3-Clause/MIT"),
228-
("brotli-decompressor", "BSD-3-Clause/MIT"),
229226
("encoding_rs", "(Apache-2.0 OR MIT) AND BSD-3-Clause"),
230227
("inferno", "CDDL-1.0"),
231228
("option-ext", "MPL-2.0"),
@@ -248,7 +245,6 @@ const EXCEPTIONS_RUSTBOOK: ExceptionList = &[
248245
const EXCEPTIONS_CRANELIFT: ExceptionList = &[
249246
// tidy-alphabetical-start
250247
("foldhash", "Zlib"),
251-
("mach2", "BSD-2-Clause OR MIT OR Apache-2.0"),
252248
// tidy-alphabetical-end
253249
];
254250

0 commit comments

Comments
 (0)