Bug 1414349 - Re-sync the list of top level crates for `mach cargo check`; r=mbrubeck
authorNick Fitzgerald <fitzgen@gmail.com>
Fri, 03 Nov 2017 10:49:34 -0700
changeset 434640 1041e4a4b37844729f925a2195af09d652c66871
parent 434639 ddb12bb581202cf76a51ea3ed4b3adea1bcfc99b
child 434641 901e1a906ea5a84f85df30c5023fa36244af7af3
push id117
push userfmarier@mozilla.com
push dateTue, 28 Nov 2017 20:17:16 +0000
reviewersmbrubeck
bugs1414349
milestone58.0a1
Bug 1414349 - Re-sync the list of top level crates for `mach cargo check`; r=mbrubeck Because there isn't a single, canonical source of truth, the `mach cargo check`'s list got out of date. MozReview-Commit-ID: EGNc2eNSumT
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -802,16 +802,17 @@ class CargoProvider(MachCommandBase):
     @SubCommand('cargo', 'check',
                 description='Run `cargo check` on a given crate.  Defaults to gkrust.')
     @CommandArgument('crates', default=None, nargs='*', help='The crate name(s) to check.')
     def check(self, crates=None):
         # XXX duplication with `mach vendor rust`
         crates_and_roots = {
             'gkrust': 'toolkit/library/rust',
             'gkrust-gtest': 'toolkit/library/gtest/rust',
+            'js': 'js/rust',
             'mozjs_sys': 'js/src',
             'geckodriver': 'testing/geckodriver',
         }
 
         if crates == None:
             crates = ['gkrust']
 
         for crate in crates: