@@ -42,6 +42,7 @@ type ExceptionList = &'static [(&'static str, &'static str)];
42
42
/// * Optionally a tuple of:
43
43
/// * A list of crates for which dependencies need to be explicitly allowed.
44
44
/// * The list of allowed dependencies.
45
+ // FIXME auto detect all cargo workspaces
45
46
pub ( crate ) const WORKSPACES : & [ ( & str , ExceptionList , Option < ( & [ & str ] , & [ & str ] ) > ) ] = & [
46
47
// The root workspace has to be first for check_rustfix to work.
47
48
( "." , EXCEPTIONS , Some ( ( & [ "rustc-main" ] , PERMITTED_RUSTC_DEPENDENCIES ) ) ) ,
@@ -53,8 +54,15 @@ pub(crate) const WORKSPACES: &[(&str, ExceptionList, Option<(&[&str], &[&str])>)
53
54
) ,
54
55
// tidy-alphabetical-start
55
56
( "compiler/rustc_codegen_gcc" , EXCEPTIONS_GCC , None ) ,
57
+ ( "library/backtrace" , & [ ] , None ) ,
58
+ //("library/portable-simd", &[], None), // FIXME uncomment once rust-lang/portable-simd#363 has been synced back to the rust repo
59
+ //("library/stdarch", EXCEPTIONS_STDARCH, None), // FIXME uncomment once rust-lang/stdarch#1462 lands
56
60
( "src/bootstrap" , EXCEPTIONS_BOOTSTRAP , None ) ,
61
+ ( "src/ci/docker/host-x86_64/test-various/uefi_qemu_test" , EXCEPTIONS_UEFI_QEMU_TEST , None ) ,
62
+ ( "src/etc/test-float-parse" , & [ ] , None ) ,
57
63
( "src/tools/cargo" , EXCEPTIONS_CARGO , None ) ,
64
+ ( "src/tools/miri/test-cargo-miri" , & [ ] , None ) ,
65
+ ( "src/tools/miri/test_dependencies" , & [ ] , None ) ,
58
66
( "src/tools/rust-analyzer" , EXCEPTIONS_RUST_ANALYZER , None ) ,
59
67
( "src/tools/x" , & [ ] , None ) ,
60
68
// tidy-alphabetical-end
@@ -84,6 +92,17 @@ const EXCEPTIONS: ExceptionList = &[
84
92
// tidy-alphabetical-end
85
93
] ;
86
94
95
+ // FIXME uncomment once rust-lang/stdarch#1462 lands
96
+ /*
97
+ const EXCEPTIONS_STDARCH: ExceptionList = &[
98
+ // tidy-alphabetical-start
99
+ ("ryu", "Apache-2.0 OR BSL-1.0"), // BSL is not acceptble, but we use it under Apache-2.0
100
+ ("wasmparser", "Apache-2.0 WITH LLVM-exception"),
101
+ ("wasmprinter", "Apache-2.0 WITH LLVM-exception"),
102
+ // tidy-alphabetical-end
103
+ ];
104
+ */
105
+
87
106
const EXCEPTIONS_CARGO : ExceptionList = & [
88
107
// tidy-alphabetical-start
89
108
( "bitmaps" , "MPL-2.0+" ) ,
@@ -152,6 +171,10 @@ const EXCEPTIONS_BOOTSTRAP: ExceptionList = &[
152
171
( "ryu" , "Apache-2.0 OR BSL-1.0" ) , // through serde. BSL is not acceptble, but we use it under Apache-2.0
153
172
] ;
154
173
174
+ const EXCEPTIONS_UEFI_QEMU_TEST : ExceptionList = & [
175
+ ( "r-efi" , "MIT OR Apache-2.0 OR LGPL-2.1-or-later" ) , // LGPL is not acceptible, but we use it under MIT OR Apache-2.0
176
+ ] ;
177
+
155
178
/// These are the root crates that are part of the runtime. The licenses for
156
179
/// these and all their dependencies *must not* be in the exception list.
157
180
const RUNTIME_CRATES : & [ & str ] = & [ "std" , "core" , "alloc" , "test" , "panic_abort" , "panic_unwind" ] ;
0 commit comments