Closed Bug 1650993 Opened 4 years ago Closed 1 year ago

Create `mach cargo` to run any cargo command

Categories

(Firefox Build System :: Mach Core, task)

task

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1810126

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.

abeingessner: this may be of interest to you? Shouldn't be too hard, just a bit of Python hacking, I think.

Flags: needinfo?(a.beingessner)
Summary: Generalize `mach cargo check` to run any cargo command → Create `mach cargo` to run any cargo command

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.

Assignee: nobody → a.beingessner
Flags: needinfo?(a.beingessner)

Was a bit messier than I thought, and ended up eternally in my backlog, so dropping for now.

Assignee: a.beingessner → nobody

I think the aim of this bug was implemented by bug 1810126.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1810126
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.