-
Notifications
You must be signed in to change notification settings - Fork 25
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
-Zbuild-std
support
#197
Comments
It's def in scope, but please hide it behind an Bonus points if we can share code with cargo by putting the logic into a separate crate |
So I went in circles for a while trying different solutions which all don't really work. Cargo does the following:
The way we extract dependencies uses Ergo I believe the best way forward is to directly parse the Alternatively we could also do some upstream changes. E.g. create a proper workspace, or pin versions in Happy to receive any further guidance! |
Uh... maybe we should talk to cargo folk 😅 i'll talk to some next week, but if you wanna reach out on the cargo zulip stream before that, don't let me stop you |
I guess this would solve it as well: rust-lang/wg-cargo-std-aware#20. |
In my fork I made it work so far by detecting I'm happy to upstream this behind a crate feature or a |
Yea that seems fine to me, no need to hide it behind a crate feature, we'll fix it as it actually sees usage. |
Passing
-Zbuild-std
toConfig::dependency_builder
does the right thing, but unfortunatelyConfig::program
requires more help to register the right dependencies.The call from Cargo adds these args which are missing from
ui_test
:Cargo has a bit of machinery in place to make this happen:
https://github.com/rust-lang/cargo/blob/3a72bf343b41da9d1676ad8f7b5daea2824d760e/src/cargo/core/compiler/unit_dependencies.rs#L150-L198
So basically it boils down to:
rust-src
component).ui_test
already does).rustc
call.I'm currently looking into porting some of this code into
ui_test
and wanted to know if this in scope.The text was updated successfully, but these errors were encountered: