@@ -9,16 +9,16 @@ doctest = false
99[dependencies ]
1010arrayvec = { version = " 0.7" , default-features = false }
1111ena = " 0.14"
12- indexmap = { version = " 1.8.0" , features = [ " rustc-rayon " ] }
12+ indexmap = { version = " 1.8.0" }
1313tracing = " 0.1"
1414jobserver_crate = { version = " 0.1.13" , package = " jobserver" }
1515rustc_serialize = { path = " ../rustc_serialize" }
1616rustc_macros = { path = " ../rustc_macros" }
1717rustc_graphviz = { path = " ../rustc_graphviz" }
1818cfg-if = " 0.1.2"
1919stable_deref_trait = " 1.0.0"
20- rayon = { version = " 0.3.2" , package = " rustc-rayon" }
21- rayon-core = { version = " 0.3.2" , package = " rustc-rayon-core" }
20+ rayon = { version = " 0.3.2" , package = " rustc-rayon" , optional = true }
21+ rayon-core = { version = " 0.3.2" , package = " rustc-rayon-core" , optional = true }
2222rustc-hash = " 1.1.0"
2323smallvec = { version = " 1.6.1" , features = [" const_generics" , " union" , " may_dangle" ] }
2424rustc_index = { path = " ../rustc_index" , package = " rustc_index" }
@@ -36,3 +36,6 @@ winapi = { version = "0.3", features = ["fileapi", "psapi", "winerror"] }
3636
3737[target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
3838memmap2 = " 0.2.1"
39+
40+ [features ]
41+ rustc_use_parallel_compiler = [" indexmap/rustc-rayon" , " rayon" , " rayon-core" ]
0 commit comments