@@ -49,7 +49,315 @@ static EXCEPTIONS: &'static [&'static str] = &[
49
49
] ;
50
50
51
51
// Whitelist of crates rustc is allowed to depend on. Avoid adding to the list if possible.
52
- static WHITELIST : & ' static [ ( & ' static str , & ' static str ) ] = & [ ] ;
52
+ static WHITELIST : & ' static [ ( & ' static str , & ' static str ) ] = & [
53
+ // ("advapi32-sys", "0.2.0"),
54
+ // ("aho-corasick", "0.5.3"),
55
+ // ("aho-corasick", "0.6.4"),
56
+ // ("alloc", "0.0.0"),
57
+ // ("alloc_jemalloc", "0.0.0"),
58
+ // ("alloc_system", "0.0.0"),
59
+ // ("ansi_term", "0.10.2"),
60
+ // ("ar", "0.3.1"),
61
+ // ("arena", "0.0.0"),
62
+ // ("atty", "0.2.6"),
63
+ // ("backtrace", "0.3.5"),
64
+ // ("backtrace-sys", "0.1.16"),
65
+ // ("bin_lib", "0.1.0"),
66
+ // ("bitflags", "0.7.0"),
67
+ // ("bitflags", "0.9.1"),
68
+ // ("bitflags", "1.0.1"),
69
+ // ("bootstrap", "0.0.0"),
70
+ // ("borrow_error", "0.1.0"),
71
+ // ("bufstream", "0.1.3"),
72
+ // ("build-manifest", "0.1.0"),
73
+ // ("build_helper", "0.1.0"),
74
+ // ("byteorder", "1.2.1"),
75
+ // ("cargo", "0.26.0"),
76
+ // ("cargo_metadata", "0.2.3"),
77
+ // ("cargo_metadata", "0.4.0"),
78
+ // ("cargotest", "0.1.0"),
79
+ // ("cargotest2", "0.1.0"),
80
+ // ("cc", "1.0.4"),
81
+ // ("cfg-if", "0.1.2"),
82
+ // ("chrono", "0.4.0"),
83
+ // ("clap", "2.29.0"),
84
+ // ("clippy", "0.0.186"),
85
+ // ("clippy-mini-macro-test", "0.2.0"),
86
+ // ("clippy_lints", "0.0.186"),
87
+ // ("cmake", "0.1.29"),
88
+ // ("coco", "0.1.1"),
89
+ // ("commoncrypto", "0.2.0"),
90
+ // ("commoncrypto-sys", "0.2.0"),
91
+ // ("compiler_builtins", "0.0.0"),
92
+ // ("compiletest", "0.0.0"),
93
+ // ("compiletest_rs", "0.3.6"),
94
+ // ("completion", "0.1.0"),
95
+ // ("core", "0.0.0"),
96
+ // ("core-foundation", "0.4.6"),
97
+ // ("core-foundation-sys", "0.4.6"),
98
+ // ("crates-io", "0.15.0"),
99
+ // ("crossbeam", "0.2.12"),
100
+ // ("crossbeam", "0.3.2"),
101
+ // ("crypto-hash", "0.3.0"),
102
+ // ("curl", "0.4.11"),
103
+ // ("curl-sys", "0.4.1"),
104
+ // ("deglob", "0.1.0"),
105
+ // ("derive-new", "0.5.0"),
106
+ // ("diff", "0.1.11"),
107
+ // ("dlmalloc", "0.0.0"),
108
+ // ("docopt", "0.8.3"),
109
+ // ("dtoa", "0.4.2"),
110
+ // ("duct", "0.8.2"),
111
+ // ("either", "1.4.0"),
112
+ // ("endian-type", "0.1.2"),
113
+ // ("enum_primitive", "0.1.1"),
114
+ // ("env_logger", "0.3.5"),
115
+ // ("env_logger", "0.4.3"),
116
+ // ("env_logger", "0.5.3"),
117
+ // ("error-chain", "0.11.0"),
118
+ // ("error-chain", "0.8.1"),
119
+ // ("error_index_generator", "0.0.0"),
120
+ // ("failure", "0.1.1"),
121
+ // ("failure_derive", "0.1.1"),
122
+ // ("features", "0.1.0"),
123
+ // ("filetime", "0.1.15"),
124
+ // ("find_all_refs_no_cfg_test", "0.1.0"),
125
+ // ("find_impls", "0.1.0"),
126
+ // ("flate2", "1.0.1"),
127
+ // ("fmt_macros", "0.0.0"),
128
+ // ("fnv", "1.0.6"),
129
+ // ("foreign-types", "0.3.2"),
130
+ // ("foreign-types-shared", "0.1.1"),
131
+ // ("fs2", "0.4.3"),
132
+ // ("fuchsia-zircon", "0.3.3"),
133
+ // ("fuchsia-zircon-sys", "0.3.3"),
134
+ // ("futures", "0.1.17"),
135
+ // ("getopts", "0.2.15"),
136
+ // ("git2", "0.6.11"),
137
+ // ("git2-curl", "0.7.0"),
138
+ // ("glob", "0.2.11"),
139
+ // ("globset", "0.2.1"),
140
+ // ("graphviz", "0.0.0"),
141
+ // ("hamcrest", "0.1.1"),
142
+ // ("handlebars", "0.29.1"),
143
+ // ("hex", "0.2.0"),
144
+ // ("hex", "0.3.1"),
145
+ // ("home", "0.3.0"),
146
+ // ("idna", "0.1.4"),
147
+ // ("if_chain", "0.1.2"),
148
+ // ("ignore", "0.3.1"),
149
+ // ("infer_bin", "0.1.0"),
150
+ // ("infer_custom_bin", "0.1.0"),
151
+ // ("infer_lib", "0.1.0"),
152
+ // ("installer", "0.0.0"),
153
+ // ("is-match", "0.1.0"),
154
+ // ("itertools", "0.6.5"),
155
+ // ("itertools", "0.7.6"),
156
+ // ("itoa", "0.3.4"),
157
+ // ("jobserver", "0.1.9"),
158
+ // ("json", "0.11.12"),
159
+ // ("jsonrpc-core", "8.0.1"),
160
+ // ("kernel32-sys", "0.2.2"),
161
+ // ("languageserver-types", "0.30.0"),
162
+ // ("lazy_static", "0.2.11"),
163
+ // ("lazy_static", "1.0.0"),
164
+ // ("lazycell", "0.5.1"),
165
+ // ("libc", "0.0.0"),
166
+ // ("libc", "0.2.36"),
167
+ // ("libgit2-sys", "0.6.19"),
168
+ // ("libssh2-sys", "0.2.6"),
169
+ // ("libz-sys", "1.0.18"),
170
+ // ("linkchecker", "0.1.0"),
171
+ // ("log", "0.3.9"),
172
+ // ("log", "0.4.1"),
173
+ // ("log_settings", "0.1.1"),
174
+ // ("lzma-sys", "0.1.9"),
175
+ // ("matches", "0.1.6"),
176
+ // ("mdbook", "0.1.2"),
177
+ // ("memchr", "0.1.11"),
178
+ // ("memchr", "2.0.1"),
179
+ // ("miniz-sys", "0.1.10"),
180
+ // ("miow", "0.2.1"),
181
+ // ("miri", "0.1.0"),
182
+ // ("multiple_bins", "0.1.0"),
183
+ // ("net2", "0.2.31"),
184
+ // ("nibble_vec", "0.0.3"),
185
+ // ("nix", "0.8.1"),
186
+ // ("num", "0.1.41"),
187
+ // ("num-bigint", "0.1.41"),
188
+ // ("num-complex", "0.1.41"),
189
+ // ("num-integer", "0.1.35"),
190
+ // ("num-iter", "0.1.34"),
191
+ // ("num-rational", "0.1.40"),
192
+ // ("num-traits", "0.1.41"),
193
+ // ("num_cpus", "1.8.0"),
194
+ // ("open", "1.2.1"),
195
+ // ("openssl", "0.9.23"),
196
+ // ("openssl-probe", "0.1.2"),
197
+ // ("openssl-sys", "0.9.24"),
198
+ // ("os_pipe", "0.5.1"),
199
+ // ("owning_ref", "0.3.3"),
200
+ // ("panic_abort", "0.0.0"),
201
+ // ("panic_unwind", "0.0.0"),
202
+ // ("parking_lot", "0.5.3"),
203
+ // ("parking_lot_core", "0.2.9"),
204
+ // ("percent-encoding", "1.0.1"),
205
+ // ("pest", "0.3.3"),
206
+ // ("pkg-config", "0.3.9"),
207
+ // ("proc_macro", "0.0.0"),
208
+ // ("profiler_builtins", "0.0.0"),
209
+ // ("pulldown-cmark", "0.0.15"),
210
+ // ("pulldown-cmark", "0.1.0"),
211
+ // ("quick-error", "1.2.1"),
212
+ // ("quine-mc_cluskey", "0.2.4"),
213
+ // ("quote", "0.3.15"),
214
+ // ("racer", "2.0.12"),
215
+ // ("radix_trie", "0.1.2"),
216
+ // ("rand", "0.3.20"),
217
+ // ("rayon", "0.9.0"),
218
+ // ("rayon-core", "1.3.0"),
219
+ // ("redox_syscall", "0.1.37"),
220
+ // ("redox_termios", "0.1.1"),
221
+ // ("reformat", "0.1.0"),
222
+ // ("reformat_with_range", "0.1.0"),
223
+ // ("regex", "0.1.80"),
224
+ // ("regex", "0.2.5"),
225
+ // ("regex-syntax", "0.3.9"),
226
+ // ("regex-syntax", "0.4.2"),
227
+ // ("remote-test-client", "0.1.0"),
228
+ // ("remote-test-server", "0.1.0"),
229
+ // ("rls", "0.125.0"),
230
+ // ("rls-analysis", "0.11.0"),
231
+ // ("rls-blacklist", "0.1.0"),
232
+ // ("rls-data", "0.15.0"),
233
+ // ("rls-rustc", "0.2.1"),
234
+ // ("rls-span", "0.4.0"),
235
+ // ("rls-vfs", "0.4.4"),
236
+ // ("rustbook", "0.1.0"),
237
+ // ("rustc", "0.0.0"),
238
+ // ("rustc-ap-rustc_cratesio_shim", "29.0.0"),
239
+ // ("rustc-ap-rustc_data_structures", "29.0.0"),
240
+ // ("rustc-ap-rustc_errors", "29.0.0"),
241
+ // ("rustc-ap-serialize", "29.0.0"),
242
+ // ("rustc-ap-syntax", "29.0.0"),
243
+ // ("rustc-ap-syntax_pos", "29.0.0"),
244
+ // ("rustc-demangle", "0.1.5"),
245
+ // ("rustc-main", "0.0.0"),
246
+ // ("rustc-serialize", "0.3.24"),
247
+ // ("rustc_allocator", "0.0.0"),
248
+ // ("rustc_apfloat", "0.0.0"),
249
+ // ("rustc_asan", "0.0.0"),
250
+ // ("rustc_back", "0.0.0"),
251
+ // ("rustc_binaryen", "0.0.0"),
252
+ // ("rustc_borrowck", "0.0.0"),
253
+ // ("rustc_const_eval", "0.0.0"),
254
+ // ("rustc_const_math", "0.0.0"),
255
+ // ("rustc_cratesio_shim", "0.0.0"),
256
+ // ("rustc_data_structures", "0.0.0"),
257
+ // ("rustc_driver", "0.0.0"),
258
+ // ("rustc_errors", "0.0.0"),
259
+ // ("rustc_incremental", "0.0.0"),
260
+ // ("rustc_lint", "0.0.0"),
261
+ // ("rustc_llvm", "0.0.0"),
262
+ // ("rustc_lsan", "0.0.0"),
263
+ // ("rustc_metadata", "0.0.0"),
264
+ // ("rustc_mir", "0.0.0"),
265
+ // ("rustc_msan", "0.0.0"),
266
+ // ("rustc_passes", "0.0.0"),
267
+ // ("rustc_platform_intrinsics", "0.0.0"),
268
+ // ("rustc_plugin", "0.0.0"),
269
+ // ("rustc_privacy", "0.0.0"),
270
+ // ("rustc_resolve", "0.0.0"),
271
+ // ("rustc_save_analysis", "0.0.0"),
272
+ // ("rustc_trans", "0.0.0"),
273
+ // ("rustc_trans_utils", "0.0.0"),
274
+ // ("rustc_tsan", "0.0.0"),
275
+ // ("rustc_typeck", "0.0.0"),
276
+ // ("rustdoc", "0.0.0"),
277
+ // ("rustdoc-themes", "0.1.0"),
278
+ // ("rustdoc-tool", "0.0.0"),
279
+ // ("rustfmt-nightly", "0.3.8"),
280
+ // ("same-file", "0.1.3"),
281
+ // ("same-file", "1.0.2"),
282
+ // ("schannel", "0.1.10"),
283
+ // ("scoped-tls", "0.1.0"),
284
+ // ("scopeguard", "0.1.2"),
285
+ // ("scopeguard", "0.3.3"),
286
+ // ("semver", "0.6.0"),
287
+ // ("semver", "0.8.0"),
288
+ // ("semver", "0.9.0"),
289
+ // ("semver-parser", "0.7.0"),
290
+ // ("serde", "1.0.27"),
291
+ // ("serde_derive", "1.0.27"),
292
+ // ("serde_derive_internals", "0.19.0"),
293
+ // ("serde_ignored", "0.0.4"),
294
+ // ("serde_json", "1.0.9"),
295
+ // ("serialize", "0.0.0"),
296
+ // ("shared_child", "0.2.1"),
297
+ // ("shell-escape", "0.1.3"),
298
+ // ("shlex", "0.1.1"),
299
+ // ("smallvec", "0.6.0"),
300
+ // ("socket2", "0.3.0"),
301
+ // ("stable_deref_trait", "1.0.0"),
302
+ // ("std", "0.0.0"),
303
+ // ("std_unicode", "0.0.0"),
304
+ // ("strsim", "0.6.0"),
305
+ // ("syn", "0.11.11"),
306
+ // ("synom", "0.11.3"),
307
+ // ("synstructure", "0.6.1"),
308
+ // ("syntax", "0.0.0"),
309
+ // ("syntax_ext", "0.0.0"),
310
+ // ("syntax_pos", "0.0.0"),
311
+ // ("syntex_errors", "0.52.0"),
312
+ // ("syntex_pos", "0.52.0"),
313
+ // ("syntex_syntax", "0.52.0"),
314
+ // ("tar", "0.4.14"),
315
+ // ("tempdir", "0.3.5"),
316
+ // ("term", "0.0.0"),
317
+ // ("term", "0.4.6"),
318
+ // ("termcolor", "0.3.3"),
319
+ // ("termion", "1.5.1"),
320
+ // ("test", "0.0.0"),
321
+ // ("textwrap", "0.9.0"),
322
+ // ("thread-id", "2.0.0"),
323
+ // ("thread_local", "0.2.7"),
324
+ // ("thread_local", "0.3.5"),
325
+ // ("tidy", "0.1.0"),
326
+ // ("time", "0.1.39"),
327
+ // ("toml", "0.2.1"),
328
+ // ("toml", "0.4.5"),
329
+ // ("toml-query", "0.6.0"),
330
+ // ("unicode-bidi", "0.3.4"),
331
+ // ("unicode-normalization", "0.1.5"),
332
+ // ("unicode-segmentation", "1.2.0"),
333
+ // ("unicode-width", "0.1.4"),
334
+ // ("unicode-xid", "0.0.3"),
335
+ // ("unicode-xid", "0.0.4"),
336
+ // ("unreachable", "1.0.0"),
337
+ // ("unstable-book-gen", "0.1.0"),
338
+ // ("unwind", "0.0.0"),
339
+ // ("url", "1.6.0"),
340
+ // ("url_serde", "0.2.0"),
341
+ // ("userenv-sys", "0.2.0"),
342
+ // ("utf8-ranges", "0.1.3"),
343
+ // ("utf8-ranges", "1.0.0"),
344
+ // ("vcpkg", "0.2.2"),
345
+ // ("vec_map", "0.8.0"),
346
+ // ("void", "1.0.2"),
347
+ // ("walkdir", "1.0.7"),
348
+ // ("walkdir", "2.0.1"),
349
+ // ("winapi", "0.2.8"),
350
+ // ("winapi", "0.3.4"),
351
+ // ("winapi-build", "0.1.1"),
352
+ // ("winapi-i686-pc-windows-gnu", "0.4.0"),
353
+ // ("winapi-x86_64-pc-windows-gnu", "0.4.0"),
354
+ // ("wincolor", "0.1.4"),
355
+ // ("workspace_symbol", "0.1.0"),
356
+ // ("ws2_32-sys", "0.2.1"),
357
+ // ("xattr", "0.1.11"),
358
+ // ("xz2", "0.1.4"),
359
+ // ("yaml-rust", "0.3.5"),
360
+ ] ;
53
361
54
362
// Some types for Serde to deserialize the output of `cargo metadata` to...
55
363
@@ -186,6 +494,7 @@ fn extract_license(line: &str) -> String {
186
494
/// Get the dependencies of the crate at the given path using `cargo metadata`.
187
495
fn get_deps ( path : & Path ) -> Vec < Package > {
188
496
// Run `cargo metadata` to get the set of dependencies
497
+ println ! ( "Getting metadata from {:?}" , path. join( "Cargo.toml" ) ) ;
189
498
let output = Command :: new ( "cargo" )
190
499
. arg ( "metadata" )
191
500
. arg ( "--format-version" )
0 commit comments