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