-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new feature resolver. #7820
Commits on Feb 20, 2020
-
Move rustc target collection out of bcx.
This allows querying it earlier, and independently of the rest of stuff in BuildContext.
Configuration menu - View commit details
-
Copy full SHA for 949ecca - Browse repository at this point
Copy the full SHA 949eccaView commit details -
Add a RequestedFeatures struct to hold cli features.
The RequestedFeatures struct holds the features requested on the command line.
Configuration menu - View commit details
-
Copy full SHA for db80baa - Browse repository at this point
Copy the full SHA db80baaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7caa161 - Browse repository at this point
Copy the full SHA 7caa161View commit details -
Ensure dev-dep features are unified if any are used.
There is a complex issue where `cargo test -Zfeatures=dev_dep` was building things incorrectly if there was a binary executable. The issue is that lib.rs needed to be built twice (once linked against normal dependencies, once against dev dependencies), but the current Unit structure can't distinguish between the two, and thus it was picking the wrong one. Instead of allowing `cargo test` to build binaries without dev-dependency features, just link main.rs against the dev-dependency-unified versions. We may need to revisit this in the future, but for now it is not clear what people want or how this should work. Fixing this would require substantial changes to how unit dependencies are computed (to properly handle deduplication), so for now we'll use a simpler solution. It would also mean `cargo test` would take longer on some projects (because it would need to build the library 3 times instead of twice).
Configuration menu - View commit details
-
Copy full SHA for d728f38 - Browse repository at this point
Copy the full SHA d728f38View commit details -
Do not store
requested_features
in FeatureResolver.This isn't really needed "globally", just at the beginning.
Configuration menu - View commit details
-
Copy full SHA for a2135fe - Browse repository at this point
Copy the full SHA a2135feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f06823 - Browse repository at this point
Copy the full SHA 3f06823View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c8b9fb - Browse repository at this point
Copy the full SHA 2c8b9fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76f0d68 - Browse repository at this point
Copy the full SHA 76f0d68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 899067f - Browse repository at this point
Copy the full SHA 899067fView commit details -
Configuration menu - View commit details
-
Copy full SHA for da678a7 - Browse repository at this point
Copy the full SHA da678a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 134aeff - Browse repository at this point
Copy the full SHA 134aeffView commit details -
Rewrite new feature resolver to simplify DepKind handling.
Now that dev-dependencies are a global setting, only build-dependencies matter. This is maybe a little simpler to understand?
Configuration menu - View commit details
-
Copy full SHA for 6154645 - Browse repository at this point
Copy the full SHA 6154645View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f33738 - Browse repository at this point
Copy the full SHA 6f33738View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8973b95 - Browse repository at this point
Copy the full SHA 8973b95View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0d64f9 - Browse repository at this point
Copy the full SHA e0d64f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 137642c - Browse repository at this point
Copy the full SHA 137642cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7c0e2e - Browse repository at this point
Copy the full SHA b7c0e2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ffb13a5 - Browse repository at this point
Copy the full SHA ffb13a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cec46e - Browse repository at this point
Copy the full SHA 2cec46eView commit details -
Configuration menu - View commit details
-
Copy full SHA for df0ae18 - Browse repository at this point
Copy the full SHA df0ae18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d6b5b1 - Browse repository at this point
Copy the full SHA 3d6b5b1View commit details -
Fix bug where an optional dependency is disabled in one fork, and ena…
…bled in another.
Configuration menu - View commit details
-
Copy full SHA for 4d0fda7 - Browse repository at this point
Copy the full SHA 4d0fda7View commit details