-
Notifications
You must be signed in to change notification settings - Fork 378
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
Use cross in cargo subcommand if called from cross #704
Comments
Depends on how you want this to work.
|
So the simple answer is: no there is no way to "magically" detect this!?!?
|
I'm working on adding some passthrough variables to |
So for adding for very partial support of this (setting |
Hey :)
So I like cross and I'm trying to add some functionallity to
cargo-all-features
to use cross.Now with the current setup the cargo subcommand can be used like
cargo test-all-features
. This will executecargo
which will run thecargo-test-all-features
binary, this will do its thing and callcargo test
. Nice, now I can check if all feature combinations are valid.Since the introduction of things like
aarch64
and the lack of gh-actions of these platform I got to usecross
as its easy to setup, easy to use. Now with the current setupcross test-all-features
would look something like this:cross
->cargo
->cargo test-all-features
->cargo test
. This is due as neither theCARGO
env variable is set to the toolchain provided to thecross
and I do not see a way to detect if the original caller wascross
. (Couldn't find the statement but something along the lines of "no additional flags are set" was in the readme some time ago)Now is there or could there be a way to detect this? So instead of calling
cargo test
I could callcross test
without any added flagsVerry much apprichiate comments, help and guidance🦄
The text was updated successfully, but these errors were encountered: