Create `mach cargo` to run any cargo command
Categories
(Firefox Build System :: Mach Core, task)
Tracking
(Not tracked)
People
(Reporter: n.nethercote, Unassigned)
References
(Blocks 1 open bug)
Details
The mach cargo check
command should be generalized so that any cargo command can be run on any crate. The setting of MOZ_TOPOBJDIR
is a key part of it.
It would also be good to have a rough idea of any cases for which it doesn't work. E.g. servo/components/style
seems to have problems. And some cargo commands might have problems.
The "Using Cargo" section in docs/writing-rust-code/basics.md
should be updated as part of this.
Reporter | ||
Comment 1•4 years ago
|
||
abeingessner: this may be of interest to you? Shouldn't be too hard, just a bit of Python hacking, I think.
Reporter | ||
Updated•4 years ago
|
Comment 2•4 years ago
|
||
I've been peering through the mach cargo check
code a bit, and this seems straightforward enough. I'll see what breaks when I try.
Comment 3•4 years ago
|
||
Was a bit messier than I thought, and ended up eternally in my backlog, so dropping for now.
Comment 4•2 years ago
|
||
I think the aim of this bug was implemented by bug 1810126.
Description
•