I've noticed a bunch of "main loop too long" warnings in console when typing in Cargo.toml. Profiling showed that the culprit is `rustc --print cfg` call. I moved it to the background project loading phase, where it belongs. This highlighted a problem: we generally use single `cfg`, while it really should be per crate. |
||
|---|---|---|
| .. | ||
| cargo_workspace.rs | ||
| cfg_flag.rs | ||
| lib.rs | ||
| project_json.rs | ||
| rustc_cfg.rs | ||
| sysroot.rs | ||
| workspace.rs | ||