cli_doc 0.1.2

Documentation generator for CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="cli-doc 0.1.1" />
    <link rel="icon" type="image/x-icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABeCAYAAAC5BeOaAAAACXBIWXMAAA3nAAAN5wGZFKomAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAABN9JREFUeNrtnG9oVXUYxz/PvHObZrWWGsuwWkWT2uhVf/bCQlKMsj9vo39kFjoKIhAMkuiNBb7JysV60SRchCj4ohiVmo0MKVqQXg2WM2VabMNkc5tz9+nF+cVy7Xbv7j33/LvPF35wOefcc3773N/v+3ue55wzUVVM/qvCEBhYA2sysAbWwJoMrIGNoVKlvoCI3AvMB0ZU9VC5gJVSZ14ikgZuB46paqNZgSmaViAiVwK3OBsAWCAijwGDwElV/d2sIH+YC4F1wOPAXTlmxDngMPAlsFtVf0sUWVUtujmArwIjgBbQMsBOP/oSlZbyYZRWAB8DTxVzGuCEWcHlYFuBbUX2IwM0qGqfRQVTo3Vjlt0TwBfOSwEGgDZgP/DHtGO7kgS1aI918elMnjkELHPHpN229LTvNgDrge+AR5Pkr3547KIs2w+o6tEcP2gv8IFrliBM01CW7c0iUmNFmMLVB4zNsP1mYJ+I3GlgC/PnYWBPlt33AD3OSw1sAdrk0tRs5690n28QkY0iUmfVrfzDrvuA3cDiPA4fBTqBbarak1iyfoUXQD2wd5ap7C5gadJCLVX1vx7rRu9m4EGXqubSsItj95kV5Ae4EdgArAWqchw+BqxU1W8NbP6A/7mDkMmxWB4F7tCEPEwW5B2EX4HlwJEs+5cBTRZuFbZQHnTxbTrLIY0G1pvmtSJSW0BS0ZVld8rATk3f0yLykYisEJE5efwYVcCKLLtPJQWsHyNkHvC8awMi0o1XCjwCnPzXNWpEZB3QCsxUQzgPfG9RgTf6WoBun/ryhqq+ZVbgr74B3klSglCsFYznEZ/mUgfQqqrjs5gpS/KsSxSii8BxVb0Yaq0AWAq87ixhIs8awRCwE7h7lte6Hviawm6xz6YNAs9Eplbg7hrcileDXQTUAq8BdcBZ4GWXKPyiqpOzPHcK+AFoDirsBh5W1c9DrW79zyib8WZiAedZGcBInd66Cu1vnB6KuzGEa94U96ggHx2L0zWDSCG3Oo8dLPI83S4sWx4Q1AlgS2hRQZANuBrYgVe/LaW3poFVkbqDEEi66NUbFpdoxp1T1aFQU1pTMhYvA2sysAbWwJoMrIE1sCbfawXyItcitKDMDf2vUkap5qC+y/nQskNfHuN8iUdQOpl6vTMKGkBYo20ciiVYeZr51HAar0ASNfVSz226mUz8PLaa5ohCBWignyXxXLzm0I9Xaouixhgtug4cDljdTh9ejTSK2qo7GInv4vUmKfpZj7IKiUBUABdQ9tBOh2o4s8nqsZYgGFiTgTWwBtbkyZcijGzgOi7xPrAaiMLr9MMIu5jLK2EVYooesSIIl9gLPBERqABXoDzLOB1hdaD4IswLNFHBzxGdkUolC/W94NNaPzy2MsJWJ4yH84pT8WD/ogc4HlGw+7X9P/8xKR5g9TMmUdagHI6UBcBXwJOx9djLTtZKHRmuChXpBMo4f4ZV1SoJWJMlCAbWwJoMbGxqBQCylmtI0YJSXYLgKYPQox/SGxewfj2w8RDKp8CCEvY1g/C2trGpLMC6BzZO4b3eGYR5PaDbOZB8j51HU2BQvXF7f3ksXpOcDbjPZ8oCrLZzAvgkoP72UkVn+UQF9TzHGX5CWY2UxBYuoPxIhi1hPppptQJLEAysycAaWANrMrAGNun6G7tgGklbFFTHAAAAAElFTkSuQmCC">
    <title>cargo: CLI doc</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #fafafa;
            color: #333;
            line-height: 1.5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            min-height: 100vh;
            padding: 20px;
        }

        .header {
            background: white;
            border: 1px solid #e1e1e1;
            border-radius: 6px;
            padding: 16px;
            margin-bottom: 10px;
        }

        .search-container {;
            display: flex;
            gap: 8px;
            align-items: center;
            position: relative;
        }

        .search-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #d1d1d1;
            border-radius: 4px;
            font-size: 14px;
        }

        .search-input:focus {
            outline: none;
            border-color: #007acc;
        }

        .btn {
            padding: 8px 16px;
            border: 1px solid #d1d1d1;
            border-radius: 4px;
            background: white;
            font-size: 14px;
            cursor: pointer;
        }

        .btn:hover {
            background: #f5f5f5;
        }

        .btn-primary {
            background: #007acc;
            color: white;
            border-color: #007acc;
        }

        .btn-primary:hover {
            background: #005a9e;
        }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            height: calc(100vh - 146px);
        }

        .column {
            background: white;
            border: 1px solid #e1e1e1;
            border-radius: 6px;
            overflow: hidden;
        }

        .column-header {
            padding: 12px 16px;
            background: #f8f8f8;
            border-bottom: 1px solid #e1e1e1;
            font-weight: 600;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #666;
        }

        .column-content {
            padding: 16px;
            height: calc(100% - 65px);
            overflow-y: auto;
        }

        .info-section {
            margin-bottom: 16px;
            padding: 12px;
            border: 1px solid #e8e8e8;
            border-radius: 4px;
            background: #fafafa;
        }

        .info-header {
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #666;
            margin-bottom: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .info-content {
            font-size: 13px;
            line-height: 1.4;
            color: #555;
        }

        .info-brief {
            font-style: italic;
            color: #777;
        }

        .command-text {
            flex: 1;
        }

        .command-signature {
            font-family: 'Monaco', 'Courier New', monospace;
            background: white;
            padding: 8px;
            border-radius: 3px;
            border: 1px solid #e1e1e1;
            margin: 8px 0;
            font-size: 13px;
        }

        .argument-item {
            margin: 6px 0;
            padding: 8px;
            background: white;
            border: 1px solid #f0f0f0;
            border-radius: 3px;
            cursor: pointer;
        }

        .argument-item:hover {
            border-color: #d1d1d1;
            background: #f9f9f9;
        }

        .argument-name {
            font-family: 'Monaco', 'Courier New', monospace;
            font-weight: 600;
            color: #d73a49;
            font-size: 13px;
        }

        .argument-description {
            color: #666;
            font-size: 12px;
            margin-top: 2px;
        }

        .option-header {
            display: flex;
            color: #aaa;
            justify-content: space-between;
            align-items: flex-start;
        }

        .option-main {
            flex: 1;
        }
        .non-expanding-text {
            padding-left: 1.5em;
        }

        .expand-triangle {
            width: 16px;
            height: 16px;
            margin-right: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 12px;
            transition: transform 0.2s ease;
            flex-shrink: 0;
        }

        .expand-triangle:hover {
            color: #333;
        }

        .expand-triangle.expanded {
            transform: rotate(90deg);
        }

        .tree-item {
            padding: 8px 12px;
            margin: 2px 0;
            cursor: pointer;
            border-radius: 4px;
            font-family: 'Monaco', 'Courier New', monospace;
            font-size: 14px;
            position: relative;
            border: 1px solid transparent;
            transition: all 0.15s ease;
            display: flex;
            align-items: center;
            user-select: none;
        }

        .tree-item:hover {
            background: #f0f0f0;
            border-color: #d1d1d1;
        }

        .tree-item.selected {
            background: #007acc;
            color: white !important;
        }

        .tree-item.level-0 {
            font-weight: 600;
            margin-bottom: 4px;
        }

        .tree-item.level-1 {
            margin-left: 16px;
            color: #666;
        }

        .tree-item.level-2 {
            margin-left: 32px;
            color: #888;
            font-size: 13px;
        }

        .tree-children {
            display: none;
        }

        .tree-children.expanded {
            display: block;
        }

        .hidden {
            display: none;
        }


        .option-item {
            padding: 12px;
            margin: 4px 0;
            /*border: 1px solid #f0f0f0;*/
            /*border-radius: 4px;*/
        }

        .option-item:nth-child(even) {
            background-color: #f2f2f2;
        }

        .option-item-expandable {
            cursor: pointer;
            transition: all 0.15s ease;
            /*border: 1px solid #f0f0f0;*/
            /*border-radius: 4px;*/
        }


        .option-item:hover {
            border-color: #d1d1d1;
            background: #e5e5e5;
        }

        .option-name {
            font-family: 'Monaco', 'Courier New', monospace;
            font-weight: 600;
            font-size: 14px;
            color: #007acc;
        }

        .option-description {
            color: #666;
            font-size: 13px;
            margin-top: 4px;
        }

        .option-full-doc {
            margin-top: 8px;
            /*border-radius: 4px;*/
            font-size: 13px;
            display: none;
        }

        .option-full-doc.expanded {
            display: block;
        }

        .option-short {
            color: #ac7acc;
        }

        .no-selection {
            text-align: center;
            color: #999;
            font-style: italic;
            margin-top: 40px;
        }

        .usage-option {
            color: #ac7acc;
        }

        .usage-argument {
            color: #d73a49;;
        }

        .rich-text ul {
            margin: 0;
            padding: 0 0 0 1em;
        }

        .rt-config {
            font-weight: bold;
        }

        .rt-config-value {
            font-style: italic;
        }

        .version {
            color: #999;
            font-family: 'Monaco', 'Courier New', monospace;
            text-align: right;
            font-size: 16px;
        }

        .search-results-widget {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #d1d1d1;
            border-radius: 4px;
            padding: 8px 12px;
            margin-top: 4px;
            display: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 1000;
        }

        .search-results-widget.visible {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .search-counter {
            font-size: 12px;
            color: #666;
            font-weight: 500;
            min-width: 30px;
        }

        .search-nav-buttons {
            display: flex;
            gap: 2px;
        }

        .search-nav-btn {
            padding: 4px 6px;
            border: 1px solid #d1d1d1;
            border-radius: 3px;
            background: white;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
        }

        .search-nav-btn:hover:not(:disabled) {
            background: #f5f5f5;
        }

        .search-nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .search-highlight-command {
            background-color: #ffccaa !important;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="header">
        <div class="search-container">
            <input type="text" class="search-input" placeholder="Search commands..." id="searchInput" oninput="resetSearch()">
            <button class="btn btn-primary" onclick="performSearch()">Search</button>

            <div class="search-results-widget" id="searchWidget">
                <div class="search-counter" id="searchCounter">1/4</div>
                <div class="search-nav-buttons">
                    <button class="search-nav-btn" id="searchPrev" onclick="navigateSearch(-1)" title="Previous result">↑</button>
                    <button class="search-nav-btn" id="searchNext" onclick="navigateSearch(1)" title="Next result">↓</button>
                    <button class="search-nav-btn" onclick="resetSearch()" title="Clear search">×</button>
                </div>
            </div>
        </div>
    </div>

    <div class="version">
    cargo 1.87.0 (99624be96 2025-05-06)
    </div>

    <div class="main-content">
        <div class="column">
            <div class="column-header">Commands</div>
            <div class="column-content" id="commandTree">
                <div id="node-c0" class="tree-item level-0 selected expanded" onclick="selectCommand('c0', this)" data-command="0"><div id="triangle-c0" class="expand-triangle expanded" onclick='toggleEvent(event, "c0")'>▶</div>
    <div class="command-text">cargo</div></div>
<div class="tree-item-children ">

    <div id="node-c1" class="tree-item level-1 " onclick="selectCommand('c1', this)" data-command="1"><div class="command-text non-expanding-text">build</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c2" class="tree-item level-1 " onclick="selectCommand('c2', this)" data-command="2"><div class="command-text non-expanding-text">check</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c3" class="tree-item level-1 " onclick="selectCommand('c3', this)" data-command="3"><div class="command-text non-expanding-text">clean</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c4" class="tree-item level-1 " onclick="selectCommand('c4', this)" data-command="4"><div class="command-text non-expanding-text">doc</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c5" class="tree-item level-1 " onclick="selectCommand('c5', this)" data-command="5"><div class="command-text non-expanding-text">new</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c6" class="tree-item level-1 " onclick="selectCommand('c6', this)" data-command="6"><div class="command-text non-expanding-text">init</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c7" class="tree-item level-1 " onclick="selectCommand('c7', this)" data-command="7"><div class="command-text non-expanding-text">add</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c8" class="tree-item level-1 " onclick="selectCommand('c8', this)" data-command="8"><div class="command-text non-expanding-text">remove</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c9" class="tree-item level-1 " onclick="selectCommand('c9', this)" data-command="9"><div class="command-text non-expanding-text">run</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c10" class="tree-item level-1 " onclick="selectCommand('c10', this)" data-command="10"><div class="command-text non-expanding-text">test</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c11" class="tree-item level-1 " onclick="selectCommand('c11', this)" data-command="11"><div class="command-text non-expanding-text">bench</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c12" class="tree-item level-1 " onclick="selectCommand('c12', this)" data-command="12"><div class="command-text non-expanding-text">update</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c13" class="tree-item level-1 " onclick="selectCommand('c13', this)" data-command="13"><div class="command-text non-expanding-text">search</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c14" class="tree-item level-1 " onclick="selectCommand('c14', this)" data-command="14"><div class="command-text non-expanding-text">publish</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c15" class="tree-item level-1 " onclick="selectCommand('c15', this)" data-command="15"><div class="command-text non-expanding-text">install</div></div>
<div class="tree-item-children hidden">

</div>

    <div id="node-c16" class="tree-item level-1 " onclick="selectCommand('c16', this)" data-command="16"><div class="command-text non-expanding-text">uninstall</div></div>
<div class="tree-item-children hidden">

</div>

</div>
            </div>
        </div>

        <div class="column">
            <div class="column-header">Options</div>
            <div class="column-content" id="optionsPanel">
                <div class="info-section">
                    <div class="info-header">
                        Command Info
                    </div>
                    <div class="info-content" id="commandInfo">
                        <div class="info-brief">Git is a distributed version control system</div>
                        <div class="command-signature">git [--version] [--help] [command]</div>
                        <div style="margin-top: 8px;">
                            Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
                        </div>
                    </div>
                </div>

                <div id="argumentsInfo"></div>
                <div id="categoryList"></div>
            </div>
        </div>
    </div>
</div>

<script>
    const commandData = {"c11":{"name":"bench","parent":"c0","brief":"<div class=\"rich-text\"><p>Execute all benchmarks of a local package</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">bench</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-option\">[BENCHNAME]</span> <span class=\"usage-option\">[--</span> <span class=\"usage-option\">[ARGS]...]</span>"],"arguments":[{"name":"[BENCHNAME]","brief":"<div class=\"rich-text\"><p>If specified, only run benches containing this string in their names</p></div>","description":null}],"categories":[{"title":"Options","options":[{"id":"o11-1","short":null,"long":"--no-run","brief":"<div class=\"rich-text\"><p>Compile, but don&#39;t run benchmarks</p></div>","description":null},{"id":"o11-2","short":null,"long":"--no-fail-fast","brief":"<div class=\"rich-text\"><p>Run all benchmarks regardless of failure</p></div>","description":null},{"id":"o11-3","short":null,"long":"--message-format &#60;FMT&#62;","brief":"<div class=\"rich-text\"><p>Error format [possible values: human, short, json,</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o11-4","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package to run benchmarks for</p></div>","description":null},{"id":"o11-5","short":null,"long":"--workspace","brief":"<div class=\"rich-text\"><p>Benchmark all packages in the workspace</p></div>","description":null},{"id":"o11-6","short":null,"long":"--exclude &#60;SPEC&#62;","brief":"<div class=\"rich-text\"><p>Exclude packages from the benchmark</p></div>","description":null},{"id":"o11-7","short":null,"long":"--all","brief":"<div class=\"rich-text\"><p>Alias for --workspace (deprecated)</p></div>","description":null}]},{"title":"Target Selection","options":[{"id":"o11-8","short":null,"long":"--lib","brief":"<div class=\"rich-text\"><p>Benchmark only this package&#39;s library</p></div>","description":null},{"id":"o11-9","short":null,"long":"--bins","brief":"<div class=\"rich-text\"><p>Benchmark all binaries</p></div>","description":null},{"id":"o11-10","short":null,"long":"--bin [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Benchmark only the specified binary</p></div>","description":null},{"id":"o11-11","short":null,"long":"--examples","brief":"<div class=\"rich-text\"><p>Benchmark all examples</p></div>","description":null},{"id":"o11-12","short":null,"long":"--example [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Benchmark only the specified example</p></div>","description":null},{"id":"o11-13","short":null,"long":"--tests","brief":"<div class=\"rich-text\"><p>Benchmark all targets that have `test = true` set</p></div>","description":null},{"id":"o11-14","short":null,"long":"--test [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Benchmark only the specified test target</p></div>","description":null},{"id":"o11-15","short":null,"long":"--benches","brief":"<div class=\"rich-text\"><p>Benchmark all targets that have `bench = true` set</p></div>","description":null},{"id":"o11-16","short":null,"long":"--bench [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Benchmark only the specified bench target</p></div>","description":null},{"id":"o11-17","short":null,"long":"--all-targets","brief":"<div class=\"rich-text\"><p>Benchmark all targets</p></div>","description":null}]},{"title":"Feature Selection","options":[{"id":"o11-18","short":"-F","long":"--features &#60;FEATURES&#62;","brief":"<div class=\"rich-text\"><p>Space or comma separated list of features to activate</p></div>","description":null},{"id":"o11-19","short":null,"long":"--all-features","brief":"<div class=\"rich-text\"><p>Activate all available features</p></div>","description":null},{"id":"o11-20","short":null,"long":"--no-default-features","brief":"<div class=\"rich-text\"><p>Do not activate the `default` feature</p></div>","description":null}]},{"title":"Compilation Options","options":[{"id":"o11-21","short":"-j","long":"--jobs &#60;N&#62;","brief":"<div class=\"rich-text\"><p>Number of parallel jobs, defaults to # of CPUs.</p></div>","description":null},{"id":"o11-22","short":null,"long":"--profile &#60;PROFILE-NAME&#62;","brief":"<div class=\"rich-text\"><p>Build artifacts with the specified profile</p></div>","description":null},{"id":"o11-23","short":null,"long":"--target [&#60;TRIPLE&#62;]","brief":"<div class=\"rich-text\"><p>Build for the target triple</p></div>","description":null},{"id":"o11-24","short":null,"long":"--target-dir &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Directory for all generated artifacts</p></div>","description":null},{"id":"o11-25","short":null,"long":"--unit-graph","brief":"<div class=\"rich-text\"><p>Output build graph in JSON (unstable)</p></div>","description":null},{"id":"o11-26","short":null,"long":"--timings[=&#60;FMTS&#62;]","brief":"<div class=\"rich-text\"><p>Timing output formats (unstable) (comma separated): html, json</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o11-27","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o11-28","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null},{"id":"o11-29","short":null,"long":"--ignore-rust-version","brief":"<div class=\"rich-text\"><p>Ignore `rust-version` specification in packages</p></div>","description":null}]}]},"c12":{"name":"update","parent":"c0","brief":"<div class=\"rich-text\"><p>Update dependencies as recorded in the local lock file</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">update</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-option\">[SPEC]...</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o12-1","short":"-n","long":"--dry-run","brief":"<div class=\"rich-text\"><p>Don&#39;t actually write the lockfile</p></div>","description":null},{"id":"o12-2","short":null,"long":"--recursive","brief":"<div class=\"rich-text\"><p>Force updating all dependencies of [SPEC]... as well</p></div>","description":null},{"id":"o12-3","short":null,"long":"--precise &#60;PRECISE&#62;","brief":"<div class=\"rich-text\"><p>Update [SPEC] to exactly PRECISE</p></div>","description":null},{"id":"o12-4","short":"-b","long":"--breaking","brief":"<div class=\"rich-text\"><p>Update [SPEC] to latest SemVer-breaking version (unstable)</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o12-5","short":"-w","long":"--workspace","brief":"<div class=\"rich-text\"><p>Only update the workspace packages</p></div>","description":null},{"id":"o12-6","short":null,"long":"[SPEC]...","brief":"<div class=\"rich-text\"><p>Package to update</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o12-7","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o12-8","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null},{"id":"o12-9","short":null,"long":"--ignore-rust-version","brief":"<div class=\"rich-text\"><p>Ignore `rust-version` specification in packages</p></div>","description":null}]}]},"c8":{"name":"remove","parent":"c0","brief":"<div class=\"rich-text\"><p>Remove dependencies from a Cargo.toml manifest file</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">remove</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-argument\">&#60;DEP_ID&#62;...</span>"],"arguments":[{"name":"&#60;DEP_ID&#62;...","brief":"<div class=\"rich-text\"><p>Dependencies to be removed</p></div>","description":null}],"categories":[{"title":"Options","options":[{"id":"o8-1","short":"-n","long":"--dry-run","brief":"<div class=\"rich-text\"><p>Don&#39;t actually write the manifest</p></div>","description":null}]},{"title":"Section","options":[{"id":"o8-2","short":null,"long":"--dev","brief":"<div class=\"rich-text\"><p>Remove from dev-dependencies</p></div>","description":null},{"id":"o8-3","short":null,"long":"--build","brief":"<div class=\"rich-text\"><p>Remove from build-dependencies</p></div>","description":null},{"id":"o8-4","short":null,"long":"--target &#60;TARGET&#62;","brief":"<div class=\"rich-text\"><p>Remove from target-dependencies</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o8-5","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package to remove from</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o8-6","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o8-7","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null}]}]},"c9":{"name":"run","parent":"c0","brief":"<div class=\"rich-text\"><p>Run a binary or example of the local package</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">run</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-option\">[ARGS]...</span>"],"arguments":[{"name":"[ARGS]...","brief":"<div class=\"rich-text\"><p>Arguments for the binary or example to run</p></div>","description":null}],"categories":[{"title":"Options","options":[{"id":"o9-1","short":null,"long":"--message-format &#60;FMT&#62;","brief":"<div class=\"rich-text\"><p>Error format [possible values: human, short, json,</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o9-2","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package with the target to run</p></div>","description":null}]},{"title":"Target Selection","options":[{"id":"o9-3","short":null,"long":"--bin [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Name of the bin target to run</p></div>","description":null},{"id":"o9-4","short":null,"long":"--example [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Name of the example target to run</p></div>","description":null}]},{"title":"Feature Selection","options":[{"id":"o9-5","short":"-F","long":"--features &#60;FEATURES&#62;","brief":"<div class=\"rich-text\"><p>Space or comma separated list of features to activate</p></div>","description":null},{"id":"o9-6","short":null,"long":"--all-features","brief":"<div class=\"rich-text\"><p>Activate all available features</p></div>","description":null},{"id":"o9-7","short":null,"long":"--no-default-features","brief":"<div class=\"rich-text\"><p>Do not activate the `default` feature</p></div>","description":null}]},{"title":"Compilation Options","options":[{"id":"o9-8","short":"-j","long":"--jobs &#60;N&#62;","brief":"<div class=\"rich-text\"><p>Number of parallel jobs, defaults to # of CPUs.</p></div>","description":null},{"id":"o9-9","short":null,"long":"--keep-going","brief":"<div class=\"rich-text\"><p>Do not abort the build as soon as there is an error</p></div>","description":null},{"id":"o9-10","short":"-r","long":"--release","brief":"<div class=\"rich-text\"><p>Build artifacts in release mode, with optimizations</p></div>","description":null},{"id":"o9-11","short":null,"long":"--profile &#60;PROFILE-NAME&#62;","brief":"<div class=\"rich-text\"><p>Build artifacts with the specified profile</p></div>","description":null},{"id":"o9-12","short":null,"long":"--target [&#60;TRIPLE&#62;]","brief":"<div class=\"rich-text\"><p>Build for the target triple</p></div>","description":null},{"id":"o9-13","short":null,"long":"--target-dir &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Directory for all generated artifacts</p></div>","description":null},{"id":"o9-14","short":null,"long":"--unit-graph","brief":"<div class=\"rich-text\"><p>Output build graph in JSON (unstable)</p></div>","description":null},{"id":"o9-15","short":null,"long":"--timings[=&#60;FMTS&#62;]","brief":"<div class=\"rich-text\"><p>Timing output formats (unstable) (comma separated): html, json</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o9-16","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o9-17","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null},{"id":"o9-18","short":null,"long":"--ignore-rust-version","brief":"<div class=\"rich-text\"><p>Ignore `rust-version` specification in packages</p></div>","description":null}]}]},"c14":{"name":"publish","parent":"c0","brief":"<div class=\"rich-text\"><p>Upload a package to the registry</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">publish</span> <span class=\"usage-option\">[OPTIONS]</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o14-1","short":"-n","long":"--dry-run","brief":"<div class=\"rich-text\"><p>Perform all checks without uploading</p></div>","description":null},{"id":"o14-2","short":null,"long":"--index &#60;INDEX&#62;","brief":"<div class=\"rich-text\"><p>Registry index URL to upload the package to</p></div>","description":null},{"id":"o14-3","short":null,"long":"--registry &#60;REGISTRY&#62;","brief":"<div class=\"rich-text\"><p>Registry to upload the package to</p></div>","description":null},{"id":"o14-4","short":null,"long":"--token &#60;TOKEN&#62;","brief":"<div class=\"rich-text\"><p>Token to use when uploading</p></div>","description":null},{"id":"o14-5","short":null,"long":"--no-verify","brief":"<div class=\"rich-text\"><p>Don&#39;t verify the contents by building them</p></div>","description":null},{"id":"o14-6","short":null,"long":"--allow-dirty","brief":"<div class=\"rich-text\"><p>Allow dirty working directories to be packaged</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o14-7","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package(s) to publish</p></div>","description":null},{"id":"o14-8","short":null,"long":"--workspace","brief":"<div class=\"rich-text\"><p>Publish all packages in the workspace (unstable)</p></div>","description":null},{"id":"o14-9","short":null,"long":"--exclude &#60;SPEC&#62;","brief":"<div class=\"rich-text\"><p>Don&#39;t publish specified packages (unstable)</p></div>","description":null}]},{"title":"Feature Selection","options":[{"id":"o14-10","short":"-F","long":"--features &#60;FEATURES&#62;","brief":"<div class=\"rich-text\"><p>Space or comma separated list of features to activate</p></div>","description":null},{"id":"o14-11","short":null,"long":"--all-features","brief":"<div class=\"rich-text\"><p>Activate all available features</p></div>","description":null},{"id":"o14-12","short":null,"long":"--no-default-features","brief":"<div class=\"rich-text\"><p>Do not activate the `default` feature</p></div>","description":null}]},{"title":"Compilation Options","options":[{"id":"o14-13","short":"-j","long":"--jobs &#60;N&#62;","brief":"<div class=\"rich-text\"><p>Number of parallel jobs, defaults to # of CPUs.</p></div>","description":null},{"id":"o14-14","short":null,"long":"--keep-going","brief":"<div class=\"rich-text\"><p>Do not abort the build as soon as there is an error</p></div>","description":null},{"id":"o14-15","short":null,"long":"--target [&#60;TRIPLE&#62;]","brief":"<div class=\"rich-text\"><p>Build for the target triple</p></div>","description":null},{"id":"o14-16","short":null,"long":"--target-dir &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Directory for all generated artifacts</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o14-17","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o14-18","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null}]}]},"c2":{"name":"check","parent":"c0","brief":"<div class=\"rich-text\"><p>Check a local package and all of its dependencies for errors</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">check</span> <span class=\"usage-option\">[OPTIONS]</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o2-1","short":null,"long":"--future-incompat-report","brief":"<div class=\"rich-text\"><p>Outputs a future incompatibility report at the end of the build</p></div>","description":null},{"id":"o2-2","short":null,"long":"--message-format &#60;FMT&#62;","brief":"<div class=\"rich-text\"><p>Error format [possible values: human, short, json,</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o2-3","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package(s) to check</p></div>","description":null},{"id":"o2-4","short":null,"long":"--workspace","brief":"<div class=\"rich-text\"><p>Check all packages in the workspace</p></div>","description":null},{"id":"o2-5","short":null,"long":"--exclude &#60;SPEC&#62;","brief":"<div class=\"rich-text\"><p>Exclude packages from the check</p></div>","description":null},{"id":"o2-6","short":null,"long":"--all","brief":"<div class=\"rich-text\"><p>Alias for --workspace (deprecated)</p></div>","description":null}]},{"title":"Target Selection","options":[{"id":"o2-7","short":null,"long":"--lib","brief":"<div class=\"rich-text\"><p>Check only this package&#39;s library</p></div>","description":null},{"id":"o2-8","short":null,"long":"--bins","brief":"<div class=\"rich-text\"><p>Check all binaries</p></div>","description":null},{"id":"o2-9","short":null,"long":"--bin [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Check only the specified binary</p></div>","description":null},{"id":"o2-10","short":null,"long":"--examples","brief":"<div class=\"rich-text\"><p>Check all examples</p></div>","description":null},{"id":"o2-11","short":null,"long":"--example [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Check only the specified example</p></div>","description":null},{"id":"o2-12","short":null,"long":"--tests","brief":"<div class=\"rich-text\"><p>Check all targets that have `test = true` set</p></div>","description":null},{"id":"o2-13","short":null,"long":"--test [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Check only the specified test target</p></div>","description":null},{"id":"o2-14","short":null,"long":"--benches","brief":"<div class=\"rich-text\"><p>Check all targets that have `bench = true` set</p></div>","description":null},{"id":"o2-15","short":null,"long":"--bench [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Check only the specified bench target</p></div>","description":null},{"id":"o2-16","short":null,"long":"--all-targets","brief":"<div class=\"rich-text\"><p>Check all targets</p></div>","description":null}]},{"title":"Feature Selection","options":[{"id":"o2-17","short":"-F","long":"--features &#60;FEATURES&#62;","brief":"<div class=\"rich-text\"><p>Space or comma separated list of features to activate</p></div>","description":null},{"id":"o2-18","short":null,"long":"--all-features","brief":"<div class=\"rich-text\"><p>Activate all available features</p></div>","description":null},{"id":"o2-19","short":null,"long":"--no-default-features","brief":"<div class=\"rich-text\"><p>Do not activate the `default` feature</p></div>","description":null}]},{"title":"Compilation Options","options":[{"id":"o2-20","short":"-j","long":"--jobs &#60;N&#62;","brief":"<div class=\"rich-text\"><p>Number of parallel jobs, defaults to # of CPUs.</p></div>","description":null},{"id":"o2-21","short":null,"long":"--keep-going","brief":"<div class=\"rich-text\"><p>Do not abort the build as soon as there is an error</p></div>","description":null},{"id":"o2-22","short":"-r","long":"--release","brief":"<div class=\"rich-text\"><p>Check artifacts in release mode, with optimizations</p></div>","description":null},{"id":"o2-23","short":null,"long":"--profile &#60;PROFILE-NAME&#62;","brief":"<div class=\"rich-text\"><p>Check artifacts with the specified profile</p></div>","description":null},{"id":"o2-24","short":null,"long":"--target [&#60;TRIPLE&#62;]","brief":"<div class=\"rich-text\"><p>Check for the target triple</p></div>","description":null},{"id":"o2-25","short":null,"long":"--target-dir &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Directory for all generated artifacts</p></div>","description":null},{"id":"o2-26","short":null,"long":"--unit-graph","brief":"<div class=\"rich-text\"><p>Output build graph in JSON (unstable)</p></div>","description":null},{"id":"o2-27","short":null,"long":"--timings[=&#60;FMTS&#62;]","brief":"<div class=\"rich-text\"><p>Timing output formats (unstable) (comma separated): html, json</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o2-28","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o2-29","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null},{"id":"o2-30","short":null,"long":"--ignore-rust-version","brief":"<div class=\"rich-text\"><p>Ignore `rust-version` specification in packages</p></div>","description":null}]}]},"c3":{"name":"clean","parent":"c0","brief":"<div class=\"rich-text\"><p>Remove artifacts that cargo has generated in the past</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">clean</span> <span class=\"usage-option\">[OPTIONS]</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o3-1","short":null,"long":"--doc","brief":"<div class=\"rich-text\"><p>Whether or not to clean just the documentation directory</p></div>","description":null},{"id":"o3-2","short":"-n","long":"--dry-run","brief":"<div class=\"rich-text\"><p>Display what would be deleted without deleting anything</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o3-3","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package to clean artifacts for</p></div>","description":null}]},{"title":"Compilation Options","options":[{"id":"o3-4","short":"-r","long":"--release","brief":"<div class=\"rich-text\"><p>Whether or not to clean release artifacts</p></div>","description":null},{"id":"o3-5","short":null,"long":"--profile &#60;PROFILE-NAME&#62;","brief":"<div class=\"rich-text\"><p>Clean artifacts of the specified profile</p></div>","description":null},{"id":"o3-6","short":null,"long":"--target [&#60;TRIPLE&#62;]","brief":"<div class=\"rich-text\"><p>Target triple to clean output for</p></div>","description":null},{"id":"o3-7","short":null,"long":"--target-dir &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Directory for all generated artifacts</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o3-8","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o3-9","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null}]}]},"c15":{"name":"install","parent":"c0","brief":"<div class=\"rich-text\"><p>Install a Rust binary</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">install</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-option\">[CRATE[@&#60;VER&#62;]]...</span>"],"arguments":[{"name":"[CRATE[@&#60;VER&#62;]]...","brief":"<div class=\"rich-text\"><p>Select the package from the given source</p></div>","description":null}],"categories":[{"title":"Options","options":[{"id":"o15-1","short":null,"long":"--version &#60;VERSION&#62;","brief":"<div class=\"rich-text\"><p>Specify a version to install</p></div>","description":null},{"id":"o15-2","short":null,"long":"--index &#60;INDEX&#62;","brief":"<div class=\"rich-text\"><p>Registry index to install from</p></div>","description":null},{"id":"o15-3","short":null,"long":"--registry &#60;REGISTRY&#62;","brief":"<div class=\"rich-text\"><p>Registry to use</p></div>","description":null},{"id":"o15-4","short":null,"long":"--git &#60;URL&#62;","brief":"<div class=\"rich-text\"><p>Git URL to install the specified crate from</p></div>","description":null},{"id":"o15-5","short":null,"long":"--branch &#60;BRANCH&#62;","brief":"<div class=\"rich-text\"><p>Branch to use when installing from git</p></div>","description":null},{"id":"o15-6","short":null,"long":"--tag &#60;TAG&#62;","brief":"<div class=\"rich-text\"><p>Tag to use when installing from git</p></div>","description":null},{"id":"o15-7","short":null,"long":"--rev &#60;SHA&#62;","brief":"<div class=\"rich-text\"><p>Specific commit to use when installing from git</p></div>","description":null},{"id":"o15-8","short":null,"long":"--path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Filesystem path to local crate to install from</p></div>","description":null},{"id":"o15-9","short":null,"long":"--root &#60;DIR&#62;","brief":"<div class=\"rich-text\"><p>Directory to install packages into</p></div>","description":null},{"id":"o15-10","short":"-f","long":"--force","brief":"<div class=\"rich-text\"><p>Force overwriting existing crates or binaries</p></div>","description":null},{"id":"o15-11","short":"-n","long":"--dry-run","brief":"<div class=\"rich-text\"><p>Perform all checks without installing (unstable)</p></div>","description":null},{"id":"o15-12","short":null,"long":"--no-track","brief":"<div class=\"rich-text\"><p>Do not save tracking information</p></div>","description":null},{"id":"o15-13","short":null,"long":"--list","brief":"<div class=\"rich-text\"><p>List all installed packages and their versions</p></div>","description":null},{"id":"o15-14","short":null,"long":"--message-format &#60;FMT&#62;","brief":"<div class=\"rich-text\"><p>Error format [possible values: human, short, json,</p></div>","description":null},{"id":"o15-15","short":null,"long":"--debug","brief":"<div class=\"rich-text\"><p>Build in debug mode (with the &#39;dev&#39; profile) instead of release</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o15-16","short":null,"long":"--ignore-rust-version","brief":"<div class=\"rich-text\"><p>Ignore `rust-version` specification in packages</p></div>","description":null},{"id":"o15-17","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null}]},{"title":"Target Selection","options":[{"id":"o15-18","short":null,"long":"--bin [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Install only the specified binary</p></div>","description":null},{"id":"o15-19","short":null,"long":"--bins","brief":"<div class=\"rich-text\"><p>Install all binaries</p></div>","description":null},{"id":"o15-20","short":null,"long":"--example [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Install only the specified example</p></div>","description":null},{"id":"o15-21","short":null,"long":"--examples","brief":"<div class=\"rich-text\"><p>Install all examples</p></div>","description":null}]},{"title":"Feature Selection","options":[{"id":"o15-22","short":"-F","long":"--features &#60;FEATURES&#62;","brief":"<div class=\"rich-text\"><p>Space or comma separated list of features to activate</p></div>","description":null},{"id":"o15-23","short":null,"long":"--all-features","brief":"<div class=\"rich-text\"><p>Activate all available features</p></div>","description":null},{"id":"o15-24","short":null,"long":"--no-default-features","brief":"<div class=\"rich-text\"><p>Do not activate the `default` feature</p></div>","description":null}]},{"title":"Compilation Options","options":[{"id":"o15-25","short":"-j","long":"--jobs &#60;N&#62;","brief":"<div class=\"rich-text\"><p>Number of parallel jobs, defaults to # of CPUs.</p></div>","description":null},{"id":"o15-26","short":null,"long":"--keep-going","brief":"<div class=\"rich-text\"><p>Do not abort the build as soon as there is an error</p></div>","description":null},{"id":"o15-27","short":null,"long":"--profile &#60;PROFILE-NAME&#62;","brief":"<div class=\"rich-text\"><p>Install artifacts with the specified profile</p></div>","description":null},{"id":"o15-28","short":null,"long":"--target [&#60;TRIPLE&#62;]","brief":"<div class=\"rich-text\"><p>Build for the target triple</p></div>","description":null},{"id":"o15-29","short":null,"long":"--target-dir &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Directory for all generated artifacts</p></div>","description":null},{"id":"o15-30","short":null,"long":"--timings[=&#60;FMTS&#62;]","brief":"<div class=\"rich-text\"><p>Timing output formats (unstable) (comma separated): html, json</p></div>","description":null}]}]},"c10":{"name":"test","parent":"c0","brief":"<div class=\"rich-text\"><p>Execute all unit and integration tests and build examples of a local package</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">test</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-option\">[TESTNAME]</span> <span class=\"usage-option\">[--</span> <span class=\"usage-option\">[ARGS]...]</span>"],"arguments":[{"name":"[TESTNAME]","brief":"<div class=\"rich-text\"><p>If specified, only run tests containing this string in their names</p></div>","description":null}],"categories":[{"title":"Options","options":[{"id":"o10-1","short":null,"long":"--no-run","brief":"<div class=\"rich-text\"><p>Compile, but don&#39;t run tests</p></div>","description":null},{"id":"o10-2","short":null,"long":"--no-fail-fast","brief":"<div class=\"rich-text\"><p>Run all tests regardless of failure</p></div>","description":null},{"id":"o10-3","short":null,"long":"--future-incompat-report","brief":"<div class=\"rich-text\"><p>Outputs a future incompatibility report at the end of the build</p></div>","description":null},{"id":"o10-4","short":null,"long":"--message-format &#60;FMT&#62;","brief":"<div class=\"rich-text\"><p>Error format [possible values: human, short, json,</p></div>","description":null},{"id":"o10-5","short":"-q","long":"--quiet","brief":"<div class=\"rich-text\"><p>Display one character per test instead of one line</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o10-6","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package to run tests for</p></div>","description":null},{"id":"o10-7","short":null,"long":"--workspace","brief":"<div class=\"rich-text\"><p>Test all packages in the workspace</p></div>","description":null},{"id":"o10-8","short":null,"long":"--exclude &#60;SPEC&#62;","brief":"<div class=\"rich-text\"><p>Exclude packages from the test</p></div>","description":null},{"id":"o10-9","short":null,"long":"--all","brief":"<div class=\"rich-text\"><p>Alias for --workspace (deprecated)</p></div>","description":null}]},{"title":"Target Selection","options":[{"id":"o10-10","short":null,"long":"--lib","brief":"<div class=\"rich-text\"><p>Test only this package&#39;s library</p></div>","description":null},{"id":"o10-11","short":null,"long":"--bins","brief":"<div class=\"rich-text\"><p>Test all binaries</p></div>","description":null},{"id":"o10-12","short":null,"long":"--bin [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Test only the specified binary</p></div>","description":null},{"id":"o10-13","short":null,"long":"--examples","brief":"<div class=\"rich-text\"><p>Test all examples</p></div>","description":null},{"id":"o10-14","short":null,"long":"--example [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Test only the specified example</p></div>","description":null},{"id":"o10-15","short":null,"long":"--tests","brief":"<div class=\"rich-text\"><p>Test all targets that have `test = true` set</p></div>","description":null},{"id":"o10-16","short":null,"long":"--test [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Test only the specified test target</p></div>","description":null},{"id":"o10-17","short":null,"long":"--benches","brief":"<div class=\"rich-text\"><p>Test all targets that have `bench = true` set</p></div>","description":null},{"id":"o10-18","short":null,"long":"--bench [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Test only the specified bench target</p></div>","description":null},{"id":"o10-19","short":null,"long":"--all-targets","brief":"<div class=\"rich-text\"><p>Test all targets (does not include doctests)</p></div>","description":null},{"id":"o10-20","short":null,"long":"--doc","brief":"<div class=\"rich-text\"><p>Test only this library&#39;s documentation</p></div>","description":null}]},{"title":"Feature Selection","options":[{"id":"o10-21","short":"-F","long":"--features &#60;FEATURES&#62;","brief":"<div class=\"rich-text\"><p>Space or comma separated list of features to activate</p></div>","description":null},{"id":"o10-22","short":null,"long":"--all-features","brief":"<div class=\"rich-text\"><p>Activate all available features</p></div>","description":null},{"id":"o10-23","short":null,"long":"--no-default-features","brief":"<div class=\"rich-text\"><p>Do not activate the `default` feature</p></div>","description":null}]},{"title":"Compilation Options","options":[{"id":"o10-24","short":"-j","long":"--jobs &#60;N&#62;","brief":"<div class=\"rich-text\"><p>Number of parallel jobs, defaults to # of CPUs.</p></div>","description":null},{"id":"o10-25","short":"-r","long":"--release","brief":"<div class=\"rich-text\"><p>Build artifacts in release mode, with optimizations</p></div>","description":null},{"id":"o10-26","short":null,"long":"--profile &#60;PROFILE-NAME&#62;","brief":"<div class=\"rich-text\"><p>Build artifacts with the specified profile</p></div>","description":null},{"id":"o10-27","short":null,"long":"--target [&#60;TRIPLE&#62;]","brief":"<div class=\"rich-text\"><p>Build for the target triple</p></div>","description":null},{"id":"o10-28","short":null,"long":"--target-dir &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Directory for all generated artifacts</p></div>","description":null},{"id":"o10-29","short":null,"long":"--unit-graph","brief":"<div class=\"rich-text\"><p>Output build graph in JSON (unstable)</p></div>","description":null},{"id":"o10-30","short":null,"long":"--timings[=&#60;FMTS&#62;]","brief":"<div class=\"rich-text\"><p>Timing output formats (unstable) (comma separated): html, json</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o10-31","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o10-32","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null},{"id":"o10-33","short":null,"long":"--ignore-rust-version","brief":"<div class=\"rich-text\"><p>Ignore `rust-version` specification in packages</p></div>","description":null}]}]},"c6":{"name":"init","parent":"c0","brief":"<div class=\"rich-text\"><p>Create a new cargo package in an existing directory</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">init</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-option\">[PATH]</span>"],"arguments":[{"name":"[PATH]","brief":"<div class=\"rich-text\"><p class=\"rt-config\">[default: <span class=\"rt-config-value\">.</span>]</p></div>","description":null}],"categories":[{"title":"Options","options":[{"id":"o6-1","short":null,"long":"--vcs &#60;VCS&#62;","brief":"<div class=\"rich-text\"><p>Initialize a new repository for the given version control system,</p></div>","description":null},{"id":"o6-2","short":null,"long":"--bin","brief":"<div class=\"rich-text\"><p>Use a binary (application) template [default]</p></div>","description":null},{"id":"o6-3","short":null,"long":"--lib","brief":"<div class=\"rich-text\"><p>Use a library template</p></div>","description":null},{"id":"o6-4","short":null,"long":"--edition &#60;YEAR&#62;","brief":"<div class=\"rich-text\"><p>Edition to set for the crate generated [possible values: 2015,</p></div>","description":null},{"id":"o6-5","short":null,"long":"--name &#60;NAME&#62;","brief":"<div class=\"rich-text\"><p>Set the resulting package name, defaults to the directory name</p></div>","description":null},{"id":"o6-6","short":null,"long":"--registry &#60;REGISTRY&#62;","brief":"<div class=\"rich-text\"><p>Registry to use</p></div>","description":null}]}]},"c0":{"name":"cargo","parent":null,"brief":"<div class=\"rich-text\"><p>Rust&#39;s package manager</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-option\">[+toolchain]</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-option\">[COMMAND]</span>","<span class=\"usage-command\">cargo</span> <span class=\"usage-option\">[+toolchain]</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-command\">-Zscript</span> <span class=\"usage-argument\">&#60;MANIFEST_RS&#62;</span> <span class=\"usage-option\">[ARGS]...</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o0-1","short":"-V","long":"--version","brief":"<div class=\"rich-text\"><p>Print version info and exit</p></div>","description":null},{"id":"o0-2","short":null,"long":"--list","brief":"<div class=\"rich-text\"><p>List installed commands</p></div>","description":null},{"id":"o0-3","short":null,"long":"--explain &#60;CODE&#62;","brief":"<div class=\"rich-text\"><p>Provide a detailed explanation of a rustc error message</p></div>","description":null},{"id":"o0-4","short":"-v","long":"--verbose...","brief":"<div class=\"rich-text\"><p>Use verbose output (-vv very verbose/build.rs output)</p></div>","description":null},{"id":"o0-5","short":"-q","long":"--quiet","brief":"<div class=\"rich-text\"><p>Do not print cargo log messages</p></div>","description":null},{"id":"o0-6","short":null,"long":"--color &#60;WHEN&#62;","brief":"<div class=\"rich-text\"><p>Coloring [possible values: auto, always, never]</p></div>","description":null},{"id":"o0-7","short":null,"long":"-C &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Change to DIRECTORY before doing anything (nightly-only)</p></div>","description":null},{"id":"o0-8","short":null,"long":"--locked","brief":"<div class=\"rich-text\"><p>Assert that `Cargo.lock` will remain unchanged</p></div>","description":null},{"id":"o0-9","short":null,"long":"--offline","brief":"<div class=\"rich-text\"><p>Run without accessing the network</p></div>","description":null},{"id":"o0-10","short":null,"long":"--frozen","brief":"<div class=\"rich-text\"><p>Equivalent to specifying both --locked and --offline</p></div>","description":null},{"id":"o0-11","short":null,"long":"--config &#60;KEY=VALUE|PATH&#62;","brief":"<div class=\"rich-text\"><p>Override a configuration value</p></div>","description":null},{"id":"o0-12","short":null,"long":"-Z &#60;FLAG&#62;","brief":"<div class=\"rich-text\"><p>Unstable (nightly-only) flags to Cargo, see &#39;cargo -Z help&#39; for</p></div>","description":null},{"id":"o0-13","short":"-h","long":"--help","brief":"<div class=\"rich-text\"><p>Print help</p></div>","description":null}]}]},"c1":{"name":"build","parent":"c0","brief":"<div class=\"rich-text\"><p>Compile a local package and all of its dependencies</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">build</span> <span class=\"usage-option\">[OPTIONS]</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o1-1","short":null,"long":"--future-incompat-report","brief":"<div class=\"rich-text\"><p>Outputs a future incompatibility report at the end of the build</p></div>","description":null},{"id":"o1-2","short":null,"long":"--message-format &#60;FMT&#62;","brief":"<div class=\"rich-text\"><p>Error format [possible values: human, short, json,</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o1-3","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package to build (see `cargo help pkgid`)</p></div>","description":null},{"id":"o1-4","short":null,"long":"--workspace","brief":"<div class=\"rich-text\"><p>Build all packages in the workspace</p></div>","description":null},{"id":"o1-5","short":null,"long":"--exclude &#60;SPEC&#62;","brief":"<div class=\"rich-text\"><p>Exclude packages from the build</p></div>","description":null},{"id":"o1-6","short":null,"long":"--all","brief":"<div class=\"rich-text\"><p>Alias for --workspace (deprecated)</p></div>","description":null}]},{"title":"Target Selection","options":[{"id":"o1-7","short":null,"long":"--lib","brief":"<div class=\"rich-text\"><p>Build only this package&#39;s library</p></div>","description":null},{"id":"o1-8","short":null,"long":"--bins","brief":"<div class=\"rich-text\"><p>Build all binaries</p></div>","description":null},{"id":"o1-9","short":null,"long":"--bin [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Build only the specified binary</p></div>","description":null},{"id":"o1-10","short":null,"long":"--examples","brief":"<div class=\"rich-text\"><p>Build all examples</p></div>","description":null},{"id":"o1-11","short":null,"long":"--example [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Build only the specified example</p></div>","description":null},{"id":"o1-12","short":null,"long":"--tests","brief":"<div class=\"rich-text\"><p>Build all targets that have `test = true` set</p></div>","description":null},{"id":"o1-13","short":null,"long":"--test [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Build only the specified test target</p></div>","description":null},{"id":"o1-14","short":null,"long":"--benches","brief":"<div class=\"rich-text\"><p>Build all targets that have `bench = true` set</p></div>","description":null},{"id":"o1-15","short":null,"long":"--bench [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Build only the specified bench target</p></div>","description":null},{"id":"o1-16","short":null,"long":"--all-targets","brief":"<div class=\"rich-text\"><p>Build all targets</p></div>","description":null}]},{"title":"Feature Selection","options":[{"id":"o1-17","short":"-F","long":"--features &#60;FEATURES&#62;","brief":"<div class=\"rich-text\"><p>Space or comma separated list of features to activate</p></div>","description":null},{"id":"o1-18","short":null,"long":"--all-features","brief":"<div class=\"rich-text\"><p>Activate all available features</p></div>","description":null},{"id":"o1-19","short":null,"long":"--no-default-features","brief":"<div class=\"rich-text\"><p>Do not activate the `default` feature</p></div>","description":null}]},{"title":"Compilation Options","options":[{"id":"o1-20","short":"-r","long":"--release","brief":"<div class=\"rich-text\"><p>Build artifacts in release mode, with optimizations</p></div>","description":null},{"id":"o1-21","short":null,"long":"--profile &#60;PROFILE-NAME&#62;","brief":"<div class=\"rich-text\"><p>Build artifacts with the specified profile</p></div>","description":null},{"id":"o1-22","short":"-j","long":"--jobs &#60;N&#62;","brief":"<div class=\"rich-text\"><p>Number of parallel jobs, defaults to # of CPUs.</p></div>","description":null},{"id":"o1-23","short":null,"long":"--keep-going","brief":"<div class=\"rich-text\"><p>Do not abort the build as soon as there is an error</p></div>","description":null},{"id":"o1-24","short":null,"long":"--target [&#60;TRIPLE&#62;]","brief":"<div class=\"rich-text\"><p>Build for the target triple</p></div>","description":null},{"id":"o1-25","short":null,"long":"--target-dir &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Directory for all generated artifacts</p></div>","description":null},{"id":"o1-26","short":null,"long":"--artifact-dir &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Copy final artifacts to this directory (unstable)</p></div>","description":null},{"id":"o1-27","short":null,"long":"--build-plan","brief":"<div class=\"rich-text\"><p>Output the build plan in JSON (unstable)</p></div>","description":null},{"id":"o1-28","short":null,"long":"--unit-graph","brief":"<div class=\"rich-text\"><p>Output build graph in JSON (unstable)</p></div>","description":null},{"id":"o1-29","short":null,"long":"--timings[=&#60;FMTS&#62;]","brief":"<div class=\"rich-text\"><p>Timing output formats (unstable) (comma separated): html, json</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o1-30","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o1-31","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null},{"id":"o1-32","short":null,"long":"--ignore-rust-version","brief":"<div class=\"rich-text\"><p>Ignore `rust-version` specification in packages</p></div>","description":null}]}]},"c13":{"name":"search","parent":"c0","brief":"<div class=\"rich-text\"><p>Search packages in the registry. Default registry is crates.io</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">search</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-option\">[QUERY]...</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o13-1","short":null,"long":"--limit &#60;LIMIT&#62;","brief":"<div class=\"rich-text\"><p>Limit the number of results (default: 10, max: 100)</p></div>","description":null},{"id":"o13-2","short":null,"long":"--index &#60;INDEX&#62;","brief":"<div class=\"rich-text\"><p>Registry index URL to search packages in</p></div>","description":null},{"id":"o13-3","short":null,"long":"--registry &#60;REGISTRY&#62;","brief":"<div class=\"rich-text\"><p>Registry to search packages in</p></div>","description":null}]}]},"c5":{"name":"new","parent":"c0","brief":"<div class=\"rich-text\"><p>Create a new cargo package at &#60;path&#62;</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">new</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-argument\">&#60;PATH&#62;</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o5-1","short":null,"long":"--vcs &#60;VCS&#62;","brief":"<div class=\"rich-text\"><p>Initialize a new repository for the given version control system,</p></div>","description":null},{"id":"o5-2","short":null,"long":"--bin","brief":"<div class=\"rich-text\"><p>Use a binary (application) template [default]</p></div>","description":null},{"id":"o5-3","short":null,"long":"--lib","brief":"<div class=\"rich-text\"><p>Use a library template</p></div>","description":null},{"id":"o5-4","short":null,"long":"--edition &#60;YEAR&#62;","brief":"<div class=\"rich-text\"><p>Edition to set for the crate generated [possible values: 2015,</p></div>","description":null},{"id":"o5-5","short":null,"long":"--name &#60;NAME&#62;","brief":"<div class=\"rich-text\"><p>Set the resulting package name, defaults to the directory name</p></div>","description":null},{"id":"o5-6","short":null,"long":"--registry &#60;REGISTRY&#62;","brief":"<div class=\"rich-text\"><p>Registry to use</p></div>","description":null}]}]},"c4":{"name":"doc","parent":"c0","brief":"<div class=\"rich-text\"><p>Build a package&#39;s documentation</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">doc</span> <span class=\"usage-option\">[OPTIONS]</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o4-1","short":null,"long":"--open","brief":"<div class=\"rich-text\"><p>Opens the docs in a browser after the operation</p></div>","description":null},{"id":"o4-2","short":null,"long":"--no-deps","brief":"<div class=\"rich-text\"><p>Don&#39;t build documentation for dependencies</p></div>","description":null},{"id":"o4-3","short":null,"long":"--document-private-items","brief":"<div class=\"rich-text\"><p>Document private items</p></div>","description":null},{"id":"o4-4","short":null,"long":"--message-format &#60;FMT&#62;","brief":"<div class=\"rich-text\"><p>Error format [possible values: human, short, json,</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o4-5","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package to document</p></div>","description":null},{"id":"o4-6","short":null,"long":"--workspace","brief":"<div class=\"rich-text\"><p>Document all packages in the workspace</p></div>","description":null},{"id":"o4-7","short":null,"long":"--exclude &#60;SPEC&#62;","brief":"<div class=\"rich-text\"><p>Exclude packages from the build</p></div>","description":null},{"id":"o4-8","short":null,"long":"--all","brief":"<div class=\"rich-text\"><p>Alias for --workspace (deprecated)</p></div>","description":null}]},{"title":"Feature Selection","options":[{"id":"o4-9","short":"-F","long":"--features &#60;FEATURES&#62;","brief":"<div class=\"rich-text\"><p>Space or comma separated list of features to activate</p></div>","description":null},{"id":"o4-10","short":null,"long":"--all-features","brief":"<div class=\"rich-text\"><p>Activate all available features</p></div>","description":null},{"id":"o4-11","short":null,"long":"--no-default-features","brief":"<div class=\"rich-text\"><p>Do not activate the `default` feature</p></div>","description":null}]},{"title":"Target Selection","options":[{"id":"o4-12","short":null,"long":"--lib","brief":"<div class=\"rich-text\"><p>Document only this package&#39;s library</p></div>","description":null},{"id":"o4-13","short":null,"long":"--bins","brief":"<div class=\"rich-text\"><p>Document all binaries</p></div>","description":null},{"id":"o4-14","short":null,"long":"--bin [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Document only the specified binary</p></div>","description":null},{"id":"o4-15","short":null,"long":"--examples","brief":"<div class=\"rich-text\"><p>Document all examples</p></div>","description":null},{"id":"o4-16","short":null,"long":"--example [&#60;NAME&#62;]","brief":"<div class=\"rich-text\"><p>Document only the specified example</p></div>","description":null}]},{"title":"Compilation Options","options":[{"id":"o4-17","short":"-j","long":"--jobs &#60;N&#62;","brief":"<div class=\"rich-text\"><p>Number of parallel jobs, defaults to # of CPUs.</p></div>","description":null},{"id":"o4-18","short":null,"long":"--keep-going","brief":"<div class=\"rich-text\"><p>Do not abort the build as soon as there is an error</p></div>","description":null},{"id":"o4-19","short":"-r","long":"--release","brief":"<div class=\"rich-text\"><p>Build artifacts in release mode, with optimizations</p></div>","description":null},{"id":"o4-20","short":null,"long":"--profile &#60;PROFILE-NAME&#62;","brief":"<div class=\"rich-text\"><p>Build artifacts with the specified profile</p></div>","description":null},{"id":"o4-21","short":null,"long":"--target [&#60;TRIPLE&#62;]","brief":"<div class=\"rich-text\"><p>Build for the target triple</p></div>","description":null},{"id":"o4-22","short":null,"long":"--target-dir &#60;DIRECTORY&#62;","brief":"<div class=\"rich-text\"><p>Directory for all generated artifacts</p></div>","description":null},{"id":"o4-23","short":null,"long":"--unit-graph","brief":"<div class=\"rich-text\"><p>Output build graph in JSON (unstable)</p></div>","description":null},{"id":"o4-24","short":null,"long":"--timings[=&#60;FMTS&#62;]","brief":"<div class=\"rich-text\"><p>Timing output formats (unstable) (comma separated): html, json</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o4-25","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o4-26","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null},{"id":"o4-27","short":null,"long":"--ignore-rust-version","brief":"<div class=\"rich-text\"><p>Ignore `rust-version` specification in packages</p></div>","description":null}]}]},"c7":{"name":"add","parent":"c0","brief":"<div class=\"rich-text\"><p>Add dependencies to a Cargo.toml manifest file</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">add</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-argument\">&#60;DEP&#62;[@&#60;VERSION&#62;]</span> <span class=\"usage-command\">...</span>","<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">add</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-command\">--path</span> <span class=\"usage-argument\">&#60;PATH&#62;</span> <span class=\"usage-command\">...</span>","<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">add</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-command\">--git</span> <span class=\"usage-argument\">&#60;URL&#62;</span> <span class=\"usage-command\">...</span>"],"arguments":[{"name":"[DEP_ID]...","brief":"<div class=\"rich-text\"><p>Reference to a package to add as a dependency</p></div>","description":"<div class=\"rich-text\"><p>You can reference a package by:</p><ul><li>`&#60;name&#62;`, like `cargo add serde` (latest version will be used)</li><li>`&#60;name&#62;@&#60;version-req&#62;`, like `cargo add serde@1` or `cargo add serde@=1.0.38`</li></ul></div>"}],"categories":[{"title":"Options","options":[{"id":"o7-1","short":null,"long":"--no-default-features","brief":"<div class=\"rich-text\"><p>Disable the default features</p></div>","description":null},{"id":"o7-2","short":null,"long":"--default-features","brief":"<div class=\"rich-text\"><p>Re-enable the default features</p></div>","description":null},{"id":"o7-3","short":"-F","long":"--features &#60;FEATURES&#62;","brief":"<div class=\"rich-text\"><p>Space or comma separated list of features to activate</p></div>","description":null},{"id":"o7-4","short":null,"long":"--optional","brief":"<div class=\"rich-text\"><p>Mark the dependency as optional</p></div>","description":"<div class=\"rich-text\"><p>The package name will be exposed as feature of your crate.</p></div>"},{"id":"o7-5","short":null,"long":"--no-optional","brief":"<div class=\"rich-text\"><p>Mark the dependency as required</p></div>","description":"<div class=\"rich-text\"><p>The package will be removed from your features.</p></div>"},{"id":"o7-6","short":null,"long":"--public","brief":"<div class=\"rich-text\"><p>Mark the dependency as public (unstable)</p></div>","description":"<div class=\"rich-text\"><p>The dependency can be referenced in your library&#39;s public API.</p></div>"},{"id":"o7-7","short":null,"long":"--no-public","brief":"<div class=\"rich-text\"><p>Mark the dependency as private (unstable)</p></div>","description":"<div class=\"rich-text\"><p>While you can use the crate in your implementation, it cannot be referenced in your public API.</p></div>"},{"id":"o7-8","short":null,"long":"--rename &#60;NAME&#62;","brief":"<div class=\"rich-text\"><p>Rename the dependency</p></div>","description":"<div class=\"rich-text\"><p>Example uses:</p><ul><li>Depending on multiple versions of a crate</li><li>Depend on crates with the same name from different registries</li></ul></div>"},{"id":"o7-9","short":"-n","long":"--dry-run","brief":"<div class=\"rich-text\"><p>Don&#39;t actually write the manifest</p></div>","description":null},{"id":"o7-10","short":null,"long":"--color &#60;WHEN&#62;","brief":"<div class=\"rich-text\"><p>Coloring</p></div>","description":"<div class=\"rich-text\"><p class=\"rt-config\">[possible values: <span class=\"rt-config-value\">auto, always, never</span>]</p></div>"},{"id":"o7-11","short":null,"long":"-Z &#60;FLAG&#62;","brief":"<div class=\"rich-text\"><p>Unstable (nightly-only) flags to Cargo, see &#39;cargo -Z help&#39; for details</p></div>","description":null},{"id":"o7-12","short":"-h","long":"--help","brief":"<div class=\"rich-text\"><p>Print help (see a summary with &#39;-h&#39;)</p></div>","description":null}]},{"title":"Manifest Options","options":[{"id":"o7-13","short":null,"long":"--manifest-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.toml</p></div>","description":null},{"id":"o7-14","short":null,"long":"--lockfile-path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Path to Cargo.lock (unstable)</p></div>","description":null},{"id":"o7-15","short":null,"long":"--ignore-rust-version","brief":"<div class=\"rich-text\"><p>Ignore `rust-version` specification in packages</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o7-16","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package to modify</p></div>","description":null}]},{"title":"Source","options":[{"id":"o7-17","short":null,"long":"--path &#60;PATH&#62;","brief":"<div class=\"rich-text\"><p>Filesystem path to local crate to add</p></div>","description":null},{"id":"o7-18","short":null,"long":"--base &#60;BASE&#62;","brief":"<div class=\"rich-text\"><p>The path base to use when adding from a local crate (unstable).</p></div>","description":null},{"id":"o7-19","short":null,"long":"--git &#60;URI&#62;","brief":"<div class=\"rich-text\"><p>Git repository location</p></div>","description":"<div class=\"rich-text\"><p>Without any other information, cargo will use latest commit on the main branch.</p></div>"},{"id":"o7-20","short":null,"long":"--branch &#60;BRANCH&#62;","brief":"<div class=\"rich-text\"><p>Git branch to download the crate from</p></div>","description":null},{"id":"o7-21","short":null,"long":"--tag &#60;TAG&#62;","brief":"<div class=\"rich-text\"><p>Git tag to download the crate from</p></div>","description":null},{"id":"o7-22","short":null,"long":"--rev &#60;REV&#62;","brief":"<div class=\"rich-text\"><p>Git reference to download the crate from</p></div>","description":"<div class=\"rich-text\"><p>This is the catch all, handling hashes to named references in remote repositories.</p></div>"},{"id":"o7-23","short":null,"long":"--registry &#60;NAME&#62;","brief":"<div class=\"rich-text\"><p>Package registry for this dependency</p></div>","description":null}]},{"title":"Section","options":[{"id":"o7-24","short":null,"long":"--dev","brief":"<div class=\"rich-text\"><p>Add as development dependency</p></div>","description":"<div class=\"rich-text\"><p>Dev-dependencies are not used when compiling a package for building, but are used for compiling tests, examples, and benchmarks.</p><p>These dependencies are not propagated to other packages which depend on this package.</p></div>"},{"id":"o7-25","short":null,"long":"--build","brief":"<div class=\"rich-text\"><p>Add as build dependency</p></div>","description":"<div class=\"rich-text\"><p>Build-dependencies are the only dependencies available for use by build scripts (`build.rs` files).</p></div>"},{"id":"o7-26","short":null,"long":"--target &#60;TARGET&#62;","brief":"<div class=\"rich-text\"><p>Add as dependency to the given target platform</p></div>","description":null}]}]},"c16":{"name":"uninstall","parent":"c0","brief":"<div class=\"rich-text\"><p>Remove a Rust binary</p></div>","description":null,"usages":["<span class=\"usage-command\">cargo</span> <span class=\"usage-command\">uninstall</span> <span class=\"usage-option\">[OPTIONS]</span> <span class=\"usage-option\">[SPEC]...</span>"],"arguments":[],"categories":[{"title":"Options","options":[{"id":"o16-1","short":null,"long":"--root &#60;DIR&#62;","brief":"<div class=\"rich-text\"><p>Directory to uninstall packages from</p></div>","description":null}]},{"title":"Package Selection","options":[{"id":"o16-2","short":"-p","long":"--package [&#60;SPEC&#62;]","brief":"<div class=\"rich-text\"><p>Package to uninstall</p></div>","description":null}]},{"title":"Target Selection","options":[{"id":"o16-3","short":null,"long":"--bin &#60;NAME&#62;","brief":"<div class=\"rich-text\"><p>Only uninstall the binary NAME</p></div>","description":null}]}]}};
    let searchResults = null;
    let searchIndex = 0;
    let currentCommand = "c0";
    function toggleEvent(event, commandId) {
    event.stopPropagation();
    toggleCommand(commandId);
}

function toggleCommand(commandId, onlyExpand = false) {
    const triangleElement = document.getElementById("triangle-" + commandId);
    const isExpanded = triangleElement.classList.contains('expanded');

    if (isExpanded && onlyExpand) {
        return
    }

    const treeItem = triangleElement.parentElement;
    const childrenContainer = treeItem.nextElementSibling;

    triangleElement.classList.toggle('expanded');

    if (isExpanded) {
        triangleElement.classList.remove('expanded');
        childrenContainer.classList.add('hidden');
    } else {
        triangleElement.classList.add('expanded');
        childrenContainer.classList.remove('hidden');
    }
}


function selectCommand(command, element) {
    document.querySelectorAll('.tree-item').forEach(item => {
        item.classList.remove('selected');
    });
    element.classList.add('selected');
    showCommandDetails(command);
    currentCommand = command;
}

function showCommandDetails(command) {
    const data = commandData[command];

    if (!data) {
        return;
    }

    const usages = data.usages.map(usage => {
        return `<div class="command-signature">${usage}</div>`;
    }).join('');

    let desc = "";
    if (data.description) {
        desc = `<div style="margin-top: 8px;">${data.description}</div>`
    }

    document.getElementById('commandInfo').innerHTML = `
                 <div class="info-brief">${data.brief}</div>
                ${usages} ${desc}
            `;

    if (data.arguments.length === 0) {
        document.getElementById('argumentsInfo').innerHTML = '';
    } else {
        let items = data.arguments.map(argument => {
            let desc = "";
            let className = "";
            let showMore = "";
            let onClick = "";
            if (argument.description) {
                desc = `<div class="option-full-doc">${argument.description}</div>`;
                className = "option-item-expandable";
                showMore = '<div class="show-more-indicator">Show more</div>';
                onClick = 'onClick="toggleFullDoc(this)"';
            }
            return `<div class="option-item ${className}" ${onClick}">
                    <div class="option-header">
                        <div class="option-main">
                          <div class="argument-name">${argument.name}</div>
                          <div class="option-description">${argument.brief}</div>
                        </div>
                        ${showMore}
                    </div>
                    ${desc}
                </div>`
        });
        document.getElementById('argumentsInfo').innerHTML = `<div class="info-section">
                    <div class="info-header">
                        Arguments
                    </div>
                    <div class="info-content" id="optionsList">
                        ${items.join("")}
                    </div>
                </div>`;
    }

    if (data.categories.length === 0) {
        document.getElementById('categoryList').innerHTML = '';
    } else {

        document.getElementById('categoryList').innerHTML = data.categories.map(category => {
                const items = category.options.map(option => {
                    let desc = "";
                    let className = "";
                    let showMore = "";
                    let onClick = "";
                    if (option.description) {
                        desc = `<div class="option-full-doc">${option.description}</div>`;
                        className = "option-item-expandable";
                        showMore = '<div class="show-more-indicator">Show more</div>';
                        onClick = 'onClick="toggleFullDoc(this)"';
                    }
                    let short = "";
                    if (option.short) {
                        short = `<span class="option-short">${option.short},</span> `
                    }
                    return `<div class="option-item ${className}" id="${option.id}" ${onClick}">
                                    <div class="option-header">
                                        <div class="option-main">
                                          <div class="option-name">${short}${option.long}</div>
                                          <div class="option-description">${option.brief}</div>
                                        </div>
                                        ${showMore}
                                    </div>
                                    ${desc}
                                </div>`
                });
                return `<div class="info-section">
                            <div class="info-header">
                                ${category.title}
                            </div>
                            <div class="info-content" id="optionsList">
                                ${items.join("")}
                            </div>
                        </div>`
            }
        ).join("");
    }
}

function expandArgument(element) {
    const fullDoc = element.querySelector('.option-full-doc');
    const isExpanded = fullDoc.classList.contains('expanded');

    document.querySelectorAll('.option-full-doc.expanded').forEach(doc => {
        doc.classList.remove('expanded');
    });

    if (!isExpanded) {
        fullDoc.classList.add('expanded');
    }
}

function toggleFullDoc(element) {
    const fullDoc = element.querySelector('.option-full-doc');
    const isExpanded = fullDoc.classList.contains('expanded');

    document.querySelectorAll('.option-full-doc.expanded').forEach(doc => {
        doc.classList.remove('expanded');
    });

    if (!isExpanded) {
        fullDoc.classList.add('expanded');
    }
}

function expandCommandsTo(id) {
    toggleCommand(id, true);
    let command = commandData[id];
    if (command.parent) {
        expandCommandsTo(command.parent);
    }
}

function performSearch() {
    resetHighlights();
    const searchTerm = document.getElementById('searchInput').value.toLowerCase();
    if (!searchTerm) {
        return;
    }

    const results = [];
    const keys = Object.keys(commandData).toSorted();
    keys.forEach(command => {
        const data = commandData[command];
        if (data.name.toLowerCase().includes(searchTerm)) {
            results.push({command: command});
        }
        data.categories.forEach(category => {
            category.options.forEach(option => {
                if (option.long.toLowerCase().includes(searchTerm) || option.brief.toLowerCase().includes(searchTerm)) {
                    results.push({command: command, child_id: option.id});
                }
            })
        })
    })
    searchResults = results;
    searchIndex = 0;
    navigateSearch(0);
    updateSearchWidget();
}

function hideSearchWidget() {
    const widget = document.getElementById('searchWidget');
    widget.classList.remove('visible');
}

function resetHighlights() {
    document.querySelectorAll('.search-highlight-command').forEach(item => {
        item.classList.remove('search-highlight-command');
    })
}

function navigateSearch(direction) {
    if (searchResults.length === 0) {
        return;
    }
    const newIndex = searchIndex + direction;
    if (newIndex >= 0 && newIndex < searchResults.length) {
        resetHighlights();
        searchIndex = newIndex;
        let result = searchResults[newIndex];
        let parent = commandData[result.command].parent;
        if (parent) {
            expandCommandsTo(parent);
        }
        const commandNodeId = `node-${result.command}`;
        selectCommand(result.command, document.getElementById(commandNodeId));
        let elementId;
        if (result.child_id) {
            elementId = result.child_id;
        } else {
            elementId = commandNodeId;
        }
        let element = document.getElementById(elementId);
        element.classList.add("search-highlight-command");
        element.scrollIntoView({
            behavior: 'smooth',
            block: 'center'
        });
        updateSearchWidget();
    }
}

function updateSearchWidget() {
    const widget = document.getElementById('searchWidget');

    if (searchResults.length > 0) {
        const counter = document.getElementById('searchCounter');
        const prevBtn = document.getElementById('searchPrev');
        const nextBtn = document.getElementById('searchNext');

        widget.classList.add('visible');
        counter.textContent = `${searchIndex + 1}/${searchResults.length}`;

        prevBtn.disabled = searchIndex === 0;
        nextBtn.disabled = searchIndex === searchResults.length - 1;
    } else {
        widget.classList.remove('visible');
    }
}

function resetSearch() {
    if (searchResults) {
        resetHighlights();
        hideSearchWidget();
        searchResults = null;
    }
}
    showCommandDetails('c0');
</script>
</body>
</html>