Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Magic support for cargo xtask #207

Open
passcod opened this issue Jul 13, 2022 · 0 comments
Open

Magic support for cargo xtask #207

passcod opened this issue Jul 13, 2022 · 0 comments
Labels

Comments

@passcod
Copy link
Member

passcod commented Jul 13, 2022

One annoyance with cargo xtask patterns is that in many cases, the xtask command only works from the root of the workspace. Cargo Watch could solve this, though, because things running inside Cargo Watch are already wrapped by nature of running processes from other processes, so we can do magic as part of that wrapping.

For example, we could parse cargo config and figure out if an xtask alias is defined, and if it is, we could replace it in the command environment (with CARGO_ALIAS_XTASK=...) with something that always works from the particular working directory we're invoking the command from.

[This issue is not a confirmed feature, and may not be implemented.]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant