@@ -78,7 +78,7 @@ const EXCEPTIONS: ExceptionList = &[
78
78
( "openssl" , "Apache-2.0" ) , // opt-dist
79
79
( "option-ext" , "MPL-2.0" ) , // cargo-miri (via `directories`)
80
80
( "rustc_apfloat" , "Apache-2.0 WITH LLVM-exception" ) , // rustc (license is the same as LLVM uses)
81
- ( "ryu" , "Apache-2.0 OR BSL-1.0" ) , // cargo/... (because of serde)
81
+ ( "ryu" , "Apache-2.0 OR BSL-1.0" ) , // BSL is not acceptble, but we use it under Apache-2.0 // cargo/... (because of serde)
82
82
( "self_cell" , "Apache-2.0" ) , // rustc (fluent translations)
83
83
( "snap" , "BSD-3-Clause" ) , // rustc
84
84
// tidy-alphabetical-end
@@ -98,7 +98,7 @@ const EXCEPTIONS_CARGO: ExceptionList = &[
98
98
( "im-rc" , "MPL-2.0+" ) ,
99
99
( "normalize-line-endings" , "Apache-2.0" ) ,
100
100
( "openssl" , "Apache-2.0" ) ,
101
- ( "ryu" , "Apache-2.0 OR BSL-1.0" ) ,
101
+ ( "ryu" , "Apache-2.0 OR BSL-1.0" ) , // BSL is not acceptble, but we use it under Apache-2.0
102
102
( "sha1_smol" , "BSD-3-Clause" ) ,
103
103
( "similar" , "Apache-2.0" ) ,
104
104
( "sized-chunks" , "MPL-2.0+" ) ,
@@ -109,12 +109,12 @@ const EXCEPTIONS_CARGO: ExceptionList = &[
109
109
110
110
const EXCEPTIONS_RUST_ANALYZER : ExceptionList = & [
111
111
// tidy-alphabetical-start
112
- ( "anymap" , "BlueOak-1.0.0 OR MIT OR Apache-2.0" ) ,
112
+ ( "anymap" , "BlueOak-1.0.0 OR MIT OR Apache-2.0" ) , // BlueOak is not acceptable, but we use it under MIT OR Apache-2 .0
113
113
( "dissimilar" , "Apache-2.0" ) ,
114
114
( "instant" , "BSD-3-Clause" ) ,
115
115
( "notify" , "CC0-1.0 OR Artistic-2.0" ) ,
116
116
( "pulldown-cmark-to-cmark" , "Apache-2.0" ) ,
117
- ( "ryu" , "Apache-2.0 OR BSL-1.0" ) ,
117
+ ( "ryu" , "Apache-2.0 OR BSL-1.0" ) , // BSL is not acceptble, but we use it under Apache-2.0
118
118
( "scip" , "Apache-2.0" ) ,
119
119
( "snap" , "BSD-3-Clause" ) ,
120
120
// tidy-alphabetical-end
@@ -149,7 +149,7 @@ const EXCEPTIONS_GCC: ExceptionList = &[
149
149
] ;
150
150
151
151
const EXCEPTIONS_BOOTSTRAP : ExceptionList = & [
152
- ( "ryu" , "Apache-2.0 OR BSL-1.0" ) , // through serde
152
+ ( "ryu" , "Apache-2.0 OR BSL-1.0" ) , // through serde. BSL is not acceptble, but we use it under Apache-2.0
153
153
] ;
154
154
155
155
/// These are the root crates that are part of the runtime. The licenses for
@@ -494,14 +494,11 @@ fn check_runtime_license_exceptions(
494
494
}
495
495
} ;
496
496
if !LICENSES . contains ( & license. as_str ( ) ) {
497
- if pkg. name == "fortanix-sgx-abi" {
498
- // This is a specific exception because SGX is considered
499
- // "third party". See
500
- // https://github.com/rust-lang/rust/issues/62620 for more. In
501
- // general, these should never be added.
502
- if pkg. license . as_deref ( ) != Some ( "MPL-2.0" ) {
503
- tidy_error ! ( bad, "invalid license `{}` in `{}`" , license, pkg. id) ;
504
- }
497
+ // This is a specific exception because SGX is considered "third party".
498
+ // See https://github.com/rust-lang/rust/issues/62620 for more.
499
+ // In general, these should never be added and this exception
500
+ // should not be taken as precedent for any new target.
501
+ if pkg. name == "fortanix-sgx-abi" && pkg. license . as_deref ( ) == Some ( "MPL-2.0" ) {
505
502
continue ;
506
503
}
507
504
tidy_error ! ( bad, "invalid license `{}` in `{}`" , license, pkg. id) ;
0 commit comments