Skip to content

Use cross in cargo subcommand if called from cross #704

Open
@somehowchris

Description

@somehowchris

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 execute cargo which will run the cargo-test-all-features binary, this will do its thing and call cargo 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 use cross as its easy to setup, easy to use. Now with the current setup cross test-all-features would look something like this: cross -> cargo -> cargo test-all-features -> cargo test. This is due as neither the CARGO env variable is set to the toolchain provided to the cross and I do not see a way to detect if the original caller was cross. (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 call cross test without any added flags

Verry much apprichiate comments, help and guidance🦄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions