forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG.md
4979 lines (4568 loc) · 261 KB
/
CHANGELOG.md
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
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Changelog
## Cargo 1.79 (2024-06-13)
[2fe739fc...HEAD](https://github.com/rust-lang/cargo/compare/2fe739fc...HEAD)
### Added
### Changed
### Fixed
- Replace dashes with underscores also if `lib.name` is inferred from `package.name`.
[#12783](https://github.com/rust-lang/cargo/pull/12783)
### Nightly only
## Cargo 1.78 (2024-05-02)
[7bb7b539...rust-1.78.0](https://github.com/rust-lang/cargo/compare/7bb7b539...rust-1.78.0)
### Added
- Stabilize global cache data tracking. The `-Zgc` flag is still unstable.
This is only for Cargo to start data collection, so that when automatic gc
is stabilized, it's less likely to see cache misses.
[#13492](https://github.com/rust-lang/cargo/pull/13492)
[#13467](https://github.com/rust-lang/cargo/pull/13467)
- Stabilize lockfile format v4. Lockfile v3 is still the default version.
[#12852](https://github.com/rust-lang/cargo/pull/12852)
- Auto-detecting whether output can be rendered using non-ASCII Unicode characters.
A configuration value `term.unicode` is added to control the behavior manually.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#termunicode)
[#13337](https://github.com/rust-lang/cargo/pull/13337)
- Support `target.<triple>.rustdocflags` in Cargo configuration.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#targettriplerustdocflags)
[#13197](https://github.com/rust-lang/cargo/pull/13197)
### Changed
- cargo-add: Print a status when a dep feature is being created
[#13434](https://github.com/rust-lang/cargo/pull/13434)
- cargo-add: improve the error message when adding a package from a replaced source.
[#13281](https://github.com/rust-lang/cargo/pull/13281)
- cargo-doc: Collapse down `Generated` statuses without `--verbose`.
[#13557](https://github.com/rust-lang/cargo/pull/13557)
- cargo-new: Print a 'Creating', rather than 'Created' status
[#13367](https://github.com/rust-lang/cargo/pull/13367)
- cargo-new: Print a note, rather than a comment, for more information
[#13371](https://github.com/rust-lang/cargo/pull/13371)
- cargo-new: Print a hint when adding members to workspace
[#13411](https://github.com/rust-lang/cargo/pull/13411)
- cargo-test: Suggest `--` for libtest arguments
[#13448](https://github.com/rust-lang/cargo/pull/13448)
- cargo-update: Tell users when some dependencies are still behind latest.
[#13372](https://github.com/rust-lang/cargo/pull/13372)
- Deprecate non-extension `.cargo/config` files.
[#13349](https://github.com/rust-lang/cargo/pull/13349)
- Don't print rustdoc command lines on failure by default
[#13387](https://github.com/rust-lang/cargo/pull/13387)
- Respect `package.rust-version` when generating new lockfiles.
[#12861](https://github.com/rust-lang/cargo/pull/12861)
- Send `User-Agent: cargo/1.2.3` header when communicating with remote registries.
Previously it was `cargo 1.2.3`, which didn't follow the HTTP specifications.
[#13548](https://github.com/rust-lang/cargo/pull/13548)
- Emit a warning when `package.edition` field is missing in Cargo.toml.
[#13499](https://github.com/rust-lang/cargo/pull/13499)
[#13504](https://github.com/rust-lang/cargo/pull/13504)
[#13505](https://github.com/rust-lang/cargo/pull/13505)
[#13533](https://github.com/rust-lang/cargo/pull/13533)
- Emit warnings from parsing virtual manifests.
[#13589](https://github.com/rust-lang/cargo/pull/13589)
- Mention the workspace root location in the error message when collecting
workspace members.
[#13480](https://github.com/rust-lang/cargo/pull/13480)
- Clarify the profile in use in `Finished` status message.
[#13422](https://github.com/rust-lang/cargo/pull/13422)
- Switched more notes/warnings to lowercase.
[#13410](https://github.com/rust-lang/cargo/pull/13410)
- Report all packages incompatible with `package.rust-version.`, not just a random one.
[#13514](https://github.com/rust-lang/cargo/pull/13514)
### Fixed
- cargo-add: don't add the new package to `workspace.members` if there is no
existing workspace in Cargo.toml.
[#13391](https://github.com/rust-lang/cargo/pull/13391)
- cargo-add: Fix markdown line break in cargo-add
[#13400](https://github.com/rust-lang/cargo/pull/13400)
- cargo-run: use Package ID Spec match packages
[#13335](https://github.com/rust-lang/cargo/pull/13335)
- cargo-doc: doctest searches native libs in build script outputs.
[#13490](https://github.com/rust-lang/cargo/pull/13490)
- cargo-publish: strip also features from dev-dependencies from Cargo.toml to publish.
[#13518](https://github.com/rust-lang/cargo/pull/13518)
- Don't duplicate comments when editing TOML via `cargo add/rm/init/new`.
[#13402](https://github.com/rust-lang/cargo/pull/13402)
- Fix confusing error messages for sparse index replaced source.
[#13433](https://github.com/rust-lang/cargo/pull/13433)
- Respect `CARGO_TERM_COLOR` in '--list' and '-Zhelp'.
[#13479](https://github.com/rust-lang/cargo/pull/13479)
- Control colors of errors and help texts from clap through `CARGO_TERM_COLOR`.
[#13463](https://github.com/rust-lang/cargo/pull/13463)
- Don't panic on empty spans in Cargo.toml.
[#13375](https://github.com/rust-lang/cargo/pull/13375)
[#13376](https://github.com/rust-lang/cargo/pull/13376)
### Nightly only
- 🔥 cargo-update: allows `--precise` to specify a yanked version of a package
[#13333](https://github.com/rust-lang/cargo/pull/13333)
- `-Zcheck-cfg`: Add `docsrs` cfg as a well known `--check-cfg`
[#13383](https://github.com/rust-lang/cargo/pull/13383)
- `-Zcheck-cfg`: Silently ignore `cargo::rustc-check-cfg` to avoid MSRV
annoyance when stabilizing `-Zcheck-cfg`.
[#13438](https://github.com/rust-lang/cargo/pull/13438)
- `-Zmsrv-policy`: Fallback to `rustc -v` when no MSRV is set
[#13516](https://github.com/rust-lang/cargo/pull/13516)
- `-Zscript`: Improve errors related to cargo script
[#13346](https://github.com/rust-lang/cargo/pull/13346)
- `-Zpanic-abort-tests`: applies to doctests too
[#13388](https://github.com/rust-lang/cargo/pull/13388)
- `-Zpublic-dependency`: supports enabling via the `-Zpublic-dependency` flag.
[#13340](https://github.com/rust-lang/cargo/pull/13340)
[#13556](https://github.com/rust-lang/cargo/pull/13556)
[#13547](https://github.com/rust-lang/cargo/pull/13547)
- `-Zpublic-dependency`: test for packaging a public dependency
[#13536](https://github.com/rust-lang/cargo/pull/13536)
- `-Zrustdoc-map`: Add all unit's children recursively for `doc.extern-map` option
[#13481](https://github.com/rust-lang/cargo/pull/13481)
[#13544](https://github.com/rust-lang/cargo/pull/13544)
- `edition2024`: Enable edition migration for 2024.
[#13429](https://github.com/rust-lang/cargo/pull/13429)
- `open-namespaces`: basic support for open namespaces
([RFC 3243](https://github.com/rust-lang/rfcs/blob/master/text/3243-packages-as-optional-namespaces.md))
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#open-namespaces))
[#13591](https://github.com/rust-lang/cargo/pull/13591)
### Documentation
- cargo-fetch: hide `cargo-fetch` recursive link in `--offline` man page.
[#13364](https://github.com/rust-lang/cargo/pull/13364)
- cargo-install: `--list` option description starting with uppercase
[#13344](https://github.com/rust-lang/cargo/pull/13344)
- cargo-vendor: clarify vendored sources as read-only and ways to modify them
[#13512](https://github.com/rust-lang/cargo/pull/13512)
- build-script: clarification of build script metadata set via `cargo::metadata=KEY=VALUE`.
[#13436](https://github.com/rust-lang/cargo/pull/13436)
- Clarify the `version` field in `[package]` is optional in Cargo.toml
[#13390](https://github.com/rust-lang/cargo/pull/13390)
- Improve "Registry Authentication" docs
[#13351](https://github.com/rust-lang/cargo/pull/13351)
- Improve "Specifying Dependencies" docs
[#13341](https://github.com/rust-lang/cargo/pull/13341)
- Remove `package.documentation` from the “before publishing” list.
[#13398](https://github.com/rust-lang/cargo/pull/13398)
### Internal
- 🎉 Integrated tracing-chrome as a basic profiler for Cargo itself.
[docs](https://doc.crates.io/contrib/tests/profiling.html)
[#13399](https://github.com/rust-lang/cargo/pull/13399)
[#13551](https://github.com/rust-lang/cargo/pull/13551)
- Updated to `gix` 0.58.0
[#13380](https://github.com/rust-lang/cargo/pull/13380)
- Updated to `git2` 0.18.2
[#13412](https://github.com/rust-lang/cargo/pull/13412)
- Updated to `jobserver` 0.1.28
[#13419](https://github.com/rust-lang/cargo/pull/13419)
- Updated to `supports-hyperlinks` 3.0.0
[#13511](https://github.com/rust-lang/cargo/pull/13511)
- Updated to `rusqlite` 0.31.0
[#13510](https://github.com/rust-lang/cargo/pull/13510)
- bump-check: use symmetric difference when comparing source code
[#13581](https://github.com/rust-lang/cargo/pull/13581)
- bump-check: include rustfix and cargo-util-schemas
[#13421](https://github.com/rust-lang/cargo/pull/13421)
- ci: enable m1 runner
[#13377](https://github.com/rust-lang/cargo/pull/13377)
- ci: Ensure lockfile is respected during MSRV testing via `cargo-hack`.
[#13523](https://github.com/rust-lang/cargo/pull/13523)
- cargo-util-schemas: Consistently compare MSRVs via `RustVersion::is_compatible_with`.
[#13537](https://github.com/rust-lang/cargo/pull/13537)
- console: Use new fancy `anstyle` API
[#13368](https://github.com/rust-lang/cargo/pull/13368)
[#13562](https://github.com/rust-lang/cargo/pull/13562)
- fingerprint: remove unnecessary Option in `Freshness::Dirty`
[#13361](https://github.com/rust-lang/cargo/pull/13361)
- fingerprint: abstract `std::fs` away from on-disk index cache
[#13515](https://github.com/rust-lang/cargo/pull/13515)
- mdman: Updated to `pulldown-cmark` 0.10.0
[#13517](https://github.com/rust-lang/cargo/pull/13517)
- refactor: Renamed `Config` to `GlobalContext`
[#13409](https://github.com/rust-lang/cargo/pull/13409)
[#13486](https://github.com/rust-lang/cargo/pull/13486)
[#13506](https://github.com/rust-lang/cargo/pull/13506)
- refactor: Removed unused `sysroot_host_libdir`.
[#13468](https://github.com/rust-lang/cargo/pull/13468)
- refactor: Expose source/spans to Manifest for emitting lints
[#13593](https://github.com/rust-lang/cargo/pull/13593)
- refactor: Flatten manifest parsing
[#13589](https://github.com/rust-lang/cargo/pull/13589)
- refactor: Make lockfile diffing/printing more reusable
[#13564](https://github.com/rust-lang/cargo/pull/13564)
- test: Updated to `snapbox` 0.5.0
[#13441](https://github.com/rust-lang/cargo/pull/13441)
- test: Verify terminal styling via snapbox's `term-svg` feature.
[#13461](https://github.com/rust-lang/cargo/pull/13461)
[#13465](https://github.com/rust-lang/cargo/pull/13465)
[#13520](https://github.com/rust-lang/cargo/pull/13520)
- test: Ensure `nonzero_exit_code` test isn't affected by developers `RUST_BACKTRACE` setting
[#13385](https://github.com/rust-lang/cargo/pull/13385)
- test: Add tests for using worktrees.
[#13567](https://github.com/rust-lang/cargo/pull/13567)
- test: Fix old_cargos tests
[#13435](https://github.com/rust-lang/cargo/pull/13435)
- test: Fixed tests due to changes in rust-lang/rust.
[#13362](https://github.com/rust-lang/cargo/pull/13362)
[#13382](https://github.com/rust-lang/cargo/pull/13382)
[#13415](https://github.com/rust-lang/cargo/pull/13415)
[#13424](https://github.com/rust-lang/cargo/pull/13424)
[#13444](https://github.com/rust-lang/cargo/pull/13444)
[#13455](https://github.com/rust-lang/cargo/pull/13455)
[#13464](https://github.com/rust-lang/cargo/pull/13464)
[#13466](https://github.com/rust-lang/cargo/pull/13466)
[#13469](https://github.com/rust-lang/cargo/pull/13469)
- test: disable lldb test as it requires privileges to run on macOS
[#13416](https://github.com/rust-lang/cargo/pull/13416)
## Cargo 1.77 (2024-03-21)
[1a2666dd...rust-1.77.0](https://github.com/rust-lang/cargo/compare/1a2666dd...rust-1.77.0)
### Added
- 🎉 Stabilize the package identifier format as [Package ID Spec](https://doc.rust-lang.org/nightly/cargo/reference/pkgid-spec.html).
This format can be used across most of the commands in Cargo, including the
`--package`/`-p` flag, `cargo pkgid`, `cargo metadata`, and JSON messages
from `--message-format=json`.
[#12914](https://github.com/rust-lang/cargo/pull/12914)
[#13202](https://github.com/rust-lang/cargo/pull/13202)
[#13311](https://github.com/rust-lang/cargo/pull/13311)
[#13298](https://github.com/rust-lang/cargo/pull/13298)
[#13322](https://github.com/rust-lang/cargo/pull/13322)
- Add colors to `-Zhelp` console output
[#13269](https://github.com/rust-lang/cargo/pull/13269)
- build script: Extend the build directive syntax with `cargo::`.
[#12201](https://github.com/rust-lang/cargo/pull/12201)
[#13212](https://github.com/rust-lang/cargo/pull/13212)
### Changed
- 🎉 Disabling debuginfo now implies `strip = "debuginfo"` (when `strip` is not set)
to strip pre-existing debuginfo coming from the standard library,
reducing the default size of release binaries considerably
(from ~4.5 MiB down to ~450 KiB for helloworld on Linux x64).
[#13257](https://github.com/rust-lang/cargo/pull/13257)
- Add `rustc` style errors for manifest parsing.
[#13172](https://github.com/rust-lang/cargo/pull/13172)
- Deprecate rustc plugin support in cargo
[#13248](https://github.com/rust-lang/cargo/pull/13248)
- cargo-vendor: Hold the mutate exclusive lock when vendoring.
[#12509](https://github.com/rust-lang/cargo/pull/12509)
- crates-io: Set `Content-Type: application/json` only for requests with a body payload
[#13264](https://github.com/rust-lang/cargo/pull/13264)
### Fixed
- jobserver: inherit jobserver from env for all kinds of runner
[#12776](https://github.com/rust-lang/cargo/pull/12776)
- build script: Set `OUT_DIR` for all units with build scripts
[#13204](https://github.com/rust-lang/cargo/pull/13204)
- cargo-add: find the correct package with given features from Git repositories
with multiple packages.
[#13213](https://github.com/rust-lang/cargo/pull/13213)
- cargo-fix: always inherit the jobserver
[#13225](https://github.com/rust-lang/cargo/pull/13225)
- cargo-fix: Call rustc fewer times to improve the performance.
[#13243](https://github.com/rust-lang/cargo/pull/13243)
- cargo-new: only inherit workspace package table if the new package is a member
[#13261](https://github.com/rust-lang/cargo/pull/13261)
- cargo-update: `--precise` accepts arbitrary git revisions
[#13250](https://github.com/rust-lang/cargo/pull/13250)
- manifest: Provide unused key warnings for lints table
[#13262](https://github.com/rust-lang/cargo/pull/13262)
- rustfix: Support inserting new lines.
[#13226](https://github.com/rust-lang/cargo/pull/13226)
### Nightly only
- 🔥 `-Zgit`: Implementation of shallow libgit2 fetches behind an unstable flag
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#git)
[#13252](https://github.com/rust-lang/cargo/pull/13252)
- 🔥 Add unstable `--output-format` option to `cargo rustdoc`, providing tools
with a way to lean on rustdoc’s experimental JSON format.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#output-format-for-rustdoc)
[#12252](https://github.com/rust-lang/cargo/pull/12252)
[#13284](https://github.com/rust-lang/cargo/pull/13284)
[#13325](https://github.com/rust-lang/cargo/pull/13325)
- `-Zcheck-cfg`: Rework `--check-cfg` generation comment
[#13195](https://github.com/rust-lang/cargo/pull/13195)
- `-Zcheck-cfg`: Go back to passing an empty `values()` when no features are declared
[#13316](https://github.com/rust-lang/cargo/pull/13316)
- `-Zprecise-pre-release`: the flag is added but not implemented yet.
[#13296](https://github.com/rust-lang/cargo/pull/13296)
[#13320](https://github.com/rust-lang/cargo/pull/13320)
- `-Zpublic-dependency`: support publish package with a `public` field.
[#13245](https://github.com/rust-lang/cargo/pull/13245)
- `-Zpublic-dependency`: help text of `--public`/`--no-public` flags for `cargo add`
[#13272](https://github.com/rust-lang/cargo/pull/13272)
- `-Zscript`: Add prefix-char frontmatter syntax support
[#13247](https://github.com/rust-lang/cargo/pull/13247)
- `-Zscript`: Add multiple experimental manifest syntaxes
[#13241](https://github.com/rust-lang/cargo/pull/13241)
- `-Ztrim-paths`: remap common prefix only
[#13210](https://github.com/rust-lang/cargo/pull/13210)
### Documentation
- Added guidance on setting homepage in manifest
[#13293](https://github.com/rust-lang/cargo/pull/13293)
- Clarified how custom subcommands are looked up.
[#13203](https://github.com/rust-lang/cargo/pull/13203)
- Clarified why `du` function uses mutex
[#13273](https://github.com/rust-lang/cargo/pull/13273)
- Highlighted "How to find features enabled on dependencies"
[#13305](https://github.com/rust-lang/cargo/pull/13305)
- Delete sentence about parentheses being unsupported in license
[#13292](https://github.com/rust-lang/cargo/pull/13292)
- resolver: clarify how pre-release version is handled in dependency resolution.
[#13286](https://github.com/rust-lang/cargo/pull/13286)
- cargo-test: clarify the target selection of the test options.
[#13236](https://github.com/rust-lang/cargo/pull/13236)
- cargo-install: clarify `--path` is the installation source not destination
[#13205](https://github.com/rust-lang/cargo/pull/13205)
- contrib: Fix team HackMD links
[#13237](https://github.com/rust-lang/cargo/pull/13237)
- contrib: Highlight the non-blocking feature gating technique
[#13307](https://github.com/rust-lang/cargo/pull/13307)
### Internal
- 🎉 New member crate [`cargo-util-schemas`](https://crates.io/crates/cargo-util-schemas)!
This contains low-level Cargo schema types, focusing on `serde` and `FromStr`
for use in reading files and parsing command-lines.
Any logic for getting final semantics from these will likely need other tools
to process, like `cargo metadata`.
The crates.io publish of this crate is the same as other members crates.
It follows Rust's [6-week release process](https://doc.crates.io/contrib/process/release.html#cratesio-publishing).
[#13178](https://github.com/rust-lang/cargo/pull/13178)
[#13185](https://github.com/rust-lang/cargo/pull/13185)
[#13186](https://github.com/rust-lang/cargo/pull/13186)
[#13209](https://github.com/rust-lang/cargo/pull/13209)
[#13267](https://github.com/rust-lang/cargo/pull/13267)
- Updated to `gix` 0.57.1.
[#13230](https://github.com/rust-lang/cargo/pull/13230)
- cargo-fix: Remove error-format special-case in `cargo fix`
[#13224](https://github.com/rust-lang/cargo/pull/13224)
- cargo-credential: bump to 0.4.3
[#13221](https://github.com/rust-lang/cargo/pull/13221)
- mdman: updated to `handlebars` 5.0.0.
[#13168](https://github.com/rust-lang/cargo/pull/13168)
[#13249](https://github.com/rust-lang/cargo/pull/13249)
- rustfix: remove useless clippy rules and fix a typo
[#13182](https://github.com/rust-lang/cargo/pull/13182)
- ci: fix Dependabot's MSRV auto-update
[#13265](https://github.com/rust-lang/cargo/pull/13265)
[#13324](https://github.com/rust-lang/cargo/pull/13324)
[#13268](https://github.com/rust-lang/cargo/pull/13268)
- ci: Add [dependency dashboard](https://github.com/rust-lang/cargo/issues/13256).
[#13255](https://github.com/rust-lang/cargo/pull/13255)
- ci: update alpine docker tag to v3.19
[#13228](https://github.com/rust-lang/cargo/pull/13228)
- ci: Improve GitHub Actions CI config
[#13317](https://github.com/rust-lang/cargo/pull/13317)
- resolver: do not panic when sorting empty summaries
[#13287](https://github.com/rust-lang/cargo/pull/13287)
## Cargo 1.76 (2024-02-08)
[6790a512...rust-1.76.0](https://github.com/rust-lang/cargo/compare/6790a512...rust-1.76.0)
### Added
- Added a Windows application manifest file to the built `cargo.exe` for windows msvc.
[#13131](https://github.com/rust-lang/cargo/pull/13131)
Notable changes:
- States the compatibility with Windows versions 7, 8, 8.1, 10 and 11.
- Sets the code page to UTF-8.
- Enables long path awareness.
- Added color output for `cargo --list`.
[#12992](https://github.com/rust-lang/cargo/pull/12992)
- cargo-add: `--optional <dep>` would create a `<dep> = "dep:<dep>"` feature.
[#13071](https://github.com/rust-lang/cargo/pull/13071)
- Extends Package ID spec for unambiguous specs.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/pkgid-spec.html)
[#12933](https://github.com/rust-lang/cargo/pull/12933)
Specifically,
- Supports `git+` and `path+` schemes.
- Supports Git ref query strings, such as `?branch=dev` or `?tag=1.69.0`.
### Changed
- ❗️ Disallow `[lints]` in virtual workspaces as they are ignored and users likely meant `[workspace.lints]`.
This was an oversight in the initial implementation (e.g. a `[dependencies]` produces the same error).
[#13155](https://github.com/rust-lang/cargo/pull/13155)
- Disallow empty name in several places like package ID spec and `cargo new`.
[#13152](https://github.com/rust-lang/cargo/pull/13152)
- Respect `rust-lang/rust`'s `omit-git-hash` option.
[#12968](https://github.com/rust-lang/cargo/pull/12968)
- Displays error count with a number, even when there is only one error.
[#12484](https://github.com/rust-lang/cargo/pull/12484)
- `all-static` feature now includes `vendored-libgit2`.
[#13134](https://github.com/rust-lang/cargo/pull/13134)
- crates-io: Add support for other 2xx HTTP status codes when interacting with registries.
[#13158](https://github.com/rust-lang/cargo/pull/13158)
[#13160](https://github.com/rust-lang/cargo/pull/13160)
- home: Replace SHGetFolderPathW with SHGetKnownFolderPath.
[#13173](https://github.com/rust-lang/cargo/pull/13173)
### Fixed
- Print rustc messages colored on wincon.
[#13140](https://github.com/rust-lang/cargo/pull/13140)
- Fixed bash completion in directory with spaces.
[#13126](https://github.com/rust-lang/cargo/pull/13126)
- Fixed uninstall a running binary failed on Windows.
[#13053](https://github.com/rust-lang/cargo/pull/13053)
[#13099](https://github.com/rust-lang/cargo/pull/13099)
- Fixed the error message for duplicate links.
[#12973](https://github.com/rust-lang/cargo/pull/12973)
- Fixed `--quiet` being used with nested subcommands.
[#12959](https://github.com/rust-lang/cargo/pull/12959)
- Fixed panic when there is a cycle in dev-dependencies.
[#12977](https://github.com/rust-lang/cargo/pull/12977)
- Don't panic when failed to parse rustc commit-hash.
[#12963](https://github.com/rust-lang/cargo/pull/12963)
[#12965](https://github.com/rust-lang/cargo/pull/12965)
- Don't do git fetches when updating workspace members.
[#12975](https://github.com/rust-lang/cargo/pull/12975)
- Avoid writing CACHEDIR.TAG if it already exists.
[#13132](https://github.com/rust-lang/cargo/pull/13132)
- Accept `?` in the `--package` flag if it's a valid pkgid spec.
[#13315](https://github.com/rust-lang/cargo/pull/13315)
[#13318](https://github.com/rust-lang/cargo/pull/13318)
- cargo-package: Only filter out `target` directory if it's in the package root.
[#12944](https://github.com/rust-lang/cargo/pull/12944)
- cargo-package: errors out when a build script doesn't exist or is outside the package root.
[#12995](https://github.com/rust-lang/cargo/pull/12995)
- cargo-credential-1password: Add missing `--account` argument to `op signin` command.
[#12985](https://github.com/rust-lang/cargo/pull/12985)
[#12986](https://github.com/rust-lang/cargo/pull/12986)
### Nightly only
- 🔥 The `-Zgc` flag enables garbage collection for deleting old, unused files
in cargo's cache. That is, downloaded source files and registry index under
the `CARGO_HOME` directory.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#gc)
[#12634](https://github.com/rust-lang/cargo/pull/12634)
[#12958](https://github.com/rust-lang/cargo/pull/12958)
[#12981](https://github.com/rust-lang/cargo/pull/12981)
[#13055](https://github.com/rust-lang/cargo/pull/13055)
- 🔥 Added a new environment variable `CARGO_RUSTC_CURRENT_DIR`.
This is a path that rustc is invoked from.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html?highlight=CARGO_RUSTC_CURRENT_DIR#environment-variables-cargo-sets-for-crates)
[#12996](https://github.com/rust-lang/cargo/pull/12996)
- `-Zcheck-cfg`: Include declared list of features in fingerprint for `-Zcheck-cfg`.
[#13012](https://github.com/rust-lang/cargo/pull/13012)
- `-Zcheck-cfg`: Fix `--check-cfg` invocations with zero features.
[#13011](https://github.com/rust-lang/cargo/pull/13011)
- `-Ztrim-paths`: reorder `--remap-path-prefix` flags for `-Zbuild-std`.
[#13065](https://github.com/rust-lang/cargo/pull/13065)
- `-Ztrim-paths`: explicitly remap current dir by using `.`.
[#13114](https://github.com/rust-lang/cargo/pull/13114)
- `-Ztrim-paths`: exercise with real world debugger.
[#13091](https://github.com/rust-lang/cargo/pull/13091)
[#13118](https://github.com/rust-lang/cargo/pull/13118)
- `-Zpublic-dependency`: Limit `exported-private-dependencies` lints to libraries.
[#13135](https://github.com/rust-lang/cargo/pull/13135)
- `-Zpublic-dependency`: Disallow workspace-inheriting of dependency public status.
[#13125](https://github.com/rust-lang/cargo/pull/13125)
- `-Zpublic-dependency`: Add `--public` for `cargo add`.
[#13046](https://github.com/rust-lang/cargo/pull/13046)
- `-Zpublic-dependency`: Remove unused public-deps error handling
[#13036](https://github.com/rust-lang/cargo/pull/13036)
- `-Zmsrv-policy`: Prefer MSRV, rather than ignore incompatible.
[#12950](https://github.com/rust-lang/cargo/pull/12950)
- `-Zmsrv-policy`: De-prioritize no-rust-version in MSRV resolver.
[#13066](https://github.com/rust-lang/cargo/pull/13066)
- `-Zrustdoc-scrape-examples`: Don't filter on workspace members when scraping doc examples.
[#13077](https://github.com/rust-lang/cargo/pull/13077)
### Documentation
- Recommends a wider selection of libsecret-compatible password managers.
[#12993](https://github.com/rust-lang/cargo/pull/12993)
- Clarified different targets has different sets of `CARGO_CFG_*` values.
[#13069](https://github.com/rust-lang/cargo/pull/13069)
- Clarified `[lints]` table only affects local development of the current package.
[#12976](https://github.com/rust-lang/cargo/pull/12976)
- Clarified `cargo search` can search in alternative registries.
[#12962](https://github.com/rust-lang/cargo/pull/12962)
- Added common CI practices for verifying `rust-version` (MSRV) field.
[#13056](https://github.com/rust-lang/cargo/pull/13056)
- Added a link to rustc lint levels doc.
[#12990](https://github.com/rust-lang/cargo/pull/12990)
- Added a link to the packages lint table from the related workspace table
[#13057](https://github.com/rust-lang/cargo/pull/13057)
- contrib: Add more resources to the contrib docs.
[#13008](https://github.com/rust-lang/cargo/pull/13008)
- contrib: Update how that credential crates are published.
[#13006](https://github.com/rust-lang/cargo/pull/13006)
- contrib: remove review capacity notice.
[#13070](https://github.com/rust-lang/cargo/pull/13070)
### Internal
- 🎉 Migrate `rustfix` crate to the `rust-lang/cargo` repository.
[#13005](https://github.com/rust-lang/cargo/pull/13005)
[#13042](https://github.com/rust-lang/cargo/pull/13042)
[#13047](https://github.com/rust-lang/cargo/pull/13047)
[#13048](https://github.com/rust-lang/cargo/pull/13048)
[#13050](https://github.com/rust-lang/cargo/pull/13050)
- Updated to `curl-sys` 0.4.70, which corresponds to curl 8.4.0.
[#13147](https://github.com/rust-lang/cargo/pull/13147)
- Updated to `gix-index` 0.27.1.
[#13148](https://github.com/rust-lang/cargo/pull/13148)
- Updated to `itertools` 0.12.0.
[#13086](https://github.com/rust-lang/cargo/pull/13086)
- Updated to `rusqlite` 0.30.0.
[#13087](https://github.com/rust-lang/cargo/pull/13087)
- Updated to `toml_edit` 0.21.0.
[#13088](https://github.com/rust-lang/cargo/pull/13088)
- Updated to `windows-sys` 0.52.0.
[#13089](https://github.com/rust-lang/cargo/pull/13089)
- Updated to `tracing` 0.1.37 for being be compatible with rustc_log.
[#13239](https://github.com/rust-lang/cargo/pull/13239)
[#13242](https://github.com/rust-lang/cargo/pull/13242)
- Re-enable flaky gitoxide auth tests thanks to update to `gix-config`.
[#13117](https://github.com/rust-lang/cargo/pull/13117)
[#13129](https://github.com/rust-lang/cargo/pull/13129)
[#13130](https://github.com/rust-lang/cargo/pull/13130)
- Dogfood Cargo `-Zlints` table feature.
[#12178](https://github.com/rust-lang/cargo/pull/12178)
- Refactored `Cargo.toml` parsing code in preparation of extracting an official
schema API.
[#12954](https://github.com/rust-lang/cargo/pull/12954)
[#12960](https://github.com/rust-lang/cargo/pull/12960)
[#12961](https://github.com/rust-lang/cargo/pull/12961)
[#12971](https://github.com/rust-lang/cargo/pull/12971)
[#13000](https://github.com/rust-lang/cargo/pull/13000)
[#13021](https://github.com/rust-lang/cargo/pull/13021)
[#13080](https://github.com/rust-lang/cargo/pull/13080)
[#13097](https://github.com/rust-lang/cargo/pull/13097)
[#13123](https://github.com/rust-lang/cargo/pull/13123)
[#13128](https://github.com/rust-lang/cargo/pull/13128)
[#13154](https://github.com/rust-lang/cargo/pull/13154)
[#13166](https://github.com/rust-lang/cargo/pull/13166)
- Use `IndexSummary` in `query{_vec}` functions.
[#12970](https://github.com/rust-lang/cargo/pull/12970)
- ci: migrate renovate config
[#13106](https://github.com/rust-lang/cargo/pull/13106)
- ci: Always update gix packages together
[#13093](https://github.com/rust-lang/cargo/pull/13093)
- ci: Catch naive use of AtomicU64 early
[#12988](https://github.com/rust-lang/cargo/pull/12988)
- xtask-bump-check: dont check `home` against beta/stable branches
[#13167](https://github.com/rust-lang/cargo/pull/13167)
- cargo-test-support: Handle $message_type in JSON diagnostics
[#13016](https://github.com/rust-lang/cargo/pull/13016)
- cargo-test-support: Add more options to registry test support.
[#13085](https://github.com/rust-lang/cargo/pull/13085)
- cargo-test-support: Add features to the default Cargo.toml file
[#12997](https://github.com/rust-lang/cargo/pull/12997)
- cargo-test-support: Fix clippy-wrapper test race condition.
[#12999](https://github.com/rust-lang/cargo/pull/12999)
- test: Don't rely on mtime to test changes
[#13143](https://github.com/rust-lang/cargo/pull/13143)
- test: remove unnecessary packages and versions for `optionals` tests
[#13108](https://github.com/rust-lang/cargo/pull/13108)
- test: Remove the deleted feature `test_2018_feature` from the test.
[#13156](https://github.com/rust-lang/cargo/pull/13156)
- test: remove jobserver env var in some tests.
[#13072](https://github.com/rust-lang/cargo/pull/13072)
- test: Fix a rustflags test using a wrong buildfile name
[#12987](https://github.com/rust-lang/cargo/pull/12987)
- test: Fix some test output validation.
[#12982](https://github.com/rust-lang/cargo/pull/12982)
- test: Ignore changing_spec_relearns_crate_types on windows-gnu
[#12972](https://github.com/rust-lang/cargo/pull/12972)
## Cargo 1.75 (2023-12-28)
[59596f0f...rust-1.75.0](https://github.com/rust-lang/cargo/compare/59596f0f...rust-1.75.0)
### Added
- `package.version` field in `Cargo.toml` is now optional and defaults to `0.0.0`.
Packages without the `package.version` field cannot be published.
[#12786](https://github.com/rust-lang/cargo/pull/12786)
- Links in `--timings` and `cargo doc` outputs are clickable on supported terminals,
controllable through `term.hyperlinks` config value.
[#12889](https://github.com/rust-lang/cargo/pull/12889)
- Print environment variables for build script executions with `-vv`.
[#12829](https://github.com/rust-lang/cargo/pull/12829)
- cargo-new: add new packages to [workspace.members] automatically.
[#12779](https://github.com/rust-lang/cargo/pull/12779)
- cargo-doc: print a new `Generated` status displaying the full path.
[#12859](https://github.com/rust-lang/cargo/pull/12859)
### Changed
- cargo-new: warn if crate name doesn't follow snake_case or kebab-case.
[#12766](https://github.com/rust-lang/cargo/pull/12766)
- cargo-install: clarify the arg `<crate>` to install is positional.
[#12841](https://github.com/rust-lang/cargo/pull/12841)
- cargo-install: Suggest an alternative version on MSRV failure.
[#12798](https://github.com/rust-lang/cargo/pull/12798)
- cargo-install: reports more detailed SemVer errors.
[#12924](https://github.com/rust-lang/cargo/pull/12924)
- cargo-install: install only once if there are crates duplicated.
[#12868](https://github.com/rust-lang/cargo/pull/12868)
- cargo-remove: Clarify flag behavior of different dependency kinds.
[#12823](https://github.com/rust-lang/cargo/pull/12823)
- cargo-remove: suggest the dependency to remove exists only in the other section.
[#12865](https://github.com/rust-lang/cargo/pull/12865)
- cargo-update: Do not call it "Downgrading" when difference is only build metadata.
[#12796](https://github.com/rust-lang/cargo/pull/12796)
- Enhanced help text to clarify `--test` flag is for Cargo targets, not test functions.
[#12915](https://github.com/rust-lang/cargo/pull/12915)
- Included package name/version in build script warnings.
[#12799](https://github.com/rust-lang/cargo/pull/12799)
- Provide next steps for bad -Z flag.
[#12857](https://github.com/rust-lang/cargo/pull/12857)
- Suggest `cargo search` when `cargo-<command>` cannot be found.
[#12840](https://github.com/rust-lang/cargo/pull/12840)
- Do not allow empty feature name.
[#12928](https://github.com/rust-lang/cargo/pull/12928)
- Added unsupported short flag suggestion for `--target` and `--exclude` flags.
[#12805](https://github.com/rust-lang/cargo/pull/12805)
- Added unsupported short flag suggestion for `--out-dir` flag.
[#12755](https://github.com/rust-lang/cargo/pull/12755)
- Added unsupported lowercase `-z` flag suggestion for `-Z` flag.
[#12788](https://github.com/rust-lang/cargo/pull/12788)
- Added better suggestion for unsupported `--path` flag.
[#12811](https://github.com/rust-lang/cargo/pull/12811)
- Added detailed message when target directory path is invalid.
[#12820](https://github.com/rust-lang/cargo/pull/12820)
### Fixed
- Fixed corruption when cargo was killed while writing to files.
[#12744](https://github.com/rust-lang/cargo/pull/12744)
- cargo-add: Preserve more comments
[#12838](https://github.com/rust-lang/cargo/pull/12838)
- cargo-fix: preserve jobserver file descriptors on rustc invocation.
[#12951](https://github.com/rust-lang/cargo/pull/12951)
- cargo-remove: Preserve feature comments
[#12837](https://github.com/rust-lang/cargo/pull/12837)
- Removed unnecessary backslash in timings HTML report when error happens.
[#12934](https://github.com/rust-lang/cargo/pull/12934)
- Fixed error message that invalid a feature name can contain `-`.
[#12939](https://github.com/rust-lang/cargo/pull/12939)
- When there's a version of a dependency in the lockfile,
Cargo would use that "exact" version, including the build metadata.
[#12772](https://github.com/rust-lang/cargo/pull/12772)
### Nightly only
- Added `Edition2024` unstable feature.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024)
[#12771](https://github.com/rust-lang/cargo/pull/12771)
- 🔥 The `-Ztrim-paths` feature adds a new profile setting to control how paths
are sanitized in the resulting binary.
([RFC 3127](https://github.com/rust-lang/rfcs/blob/master/text/3127-trim-paths.md))
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-trim-paths-option))
[#12625](https://github.com/rust-lang/cargo/pull/12625)
[#12900](https://github.com/rust-lang/cargo/pull/12900)
[#12908](https://github.com/rust-lang/cargo/pull/12908)
- `-Zcheck-cfg`: Adjusted for new rustc syntax and behavior.
[#12845](https://github.com/rust-lang/cargo/pull/12845)
- `-Zcheck-cfg`: Remove outdated option to `-Zcheck-cfg` warnings.
[#12884](https://github.com/rust-lang/cargo/pull/12884)
- `public-dependency`: Support `public` dependency configuration with workspace deps.
[#12817](https://github.com/rust-lang/cargo/pull/12817)
### Documentation
- profile: add missing `strip` info.
[#12754](https://github.com/rust-lang/cargo/pull/12754)
- features: a note about the new limit on number of features.
[#12913](https://github.com/rust-lang/cargo/pull/12913)
- crates-io: Add doc comment for `NewCrate` struct.
[#12782](https://github.com/rust-lang/cargo/pull/12782)
- resolver: Highlight commands to answer dep resolution questions.
[#12903](https://github.com/rust-lang/cargo/pull/12903)
- cargo-bench: `--bench` is passed in unconditionally to bench harnesses.
[#12850](https://github.com/rust-lang/cargo/pull/12850)
- cargo-login: mention args after `--` in manpage.
[#12832](https://github.com/rust-lang/cargo/pull/12832)
- cargo-vendor: clarify config to use vendored source is printed to stdout
[#12893](https://github.com/rust-lang/cargo/pull/12893)
- manifest: update to SPDX 2.3 license expression and 3.20 license list.
[#12827](https://github.com/rust-lang/cargo/pull/12827)
- contrib: Policy on manifest editing
[#12836](https://github.com/rust-lang/cargo/pull/12836)
- contrib: use `AND` search terms in mdbook search and fixed broken links.
[#12812](https://github.com/rust-lang/cargo/pull/12812)
[#12813](https://github.com/rust-lang/cargo/pull/12813)
[#12814](https://github.com/rust-lang/cargo/pull/12814)
- contrib: Describe how to add a new package
[#12878](https://github.com/rust-lang/cargo/pull/12878)
- contrib: Removed review capacity notice.
[#12842](https://github.com/rust-lang/cargo/pull/12842)
### Internal
- Updated to `itertools` 0.11.0.
[#12759](https://github.com/rust-lang/cargo/pull/12759)
- Updated to `cargo_metadata` 0.18.0.
[#12758](https://github.com/rust-lang/cargo/pull/12758)
- Updated to `curl-sys` 0.4.68, which corresponds to curl 8.4.0.
[#12808](https://github.com/rust-lang/cargo/pull/12808)
- Updated to `toml` 0.8.2.
[#12760](https://github.com/rust-lang/cargo/pull/12760)
- Updated to `toml_edit` 0.20.2.
[#12761](https://github.com/rust-lang/cargo/pull/12761)
- Updated to `gix` to 0.55.2
[#12906](https://github.com/rust-lang/cargo/pull/12906)
- Disabled the `custom_target::custom_bin_target` test on windows-gnu.
[#12763](https://github.com/rust-lang/cargo/pull/12763)
- Refactored `Cargo.toml` parsing code in preparation of extracting an official
schema API.
[#12768](https://github.com/rust-lang/cargo/pull/12768)
[#12881](https://github.com/rust-lang/cargo/pull/12881)
[#12902](https://github.com/rust-lang/cargo/pull/12902)
[#12911](https://github.com/rust-lang/cargo/pull/12911)
[#12948](https://github.com/rust-lang/cargo/pull/12948)
- Split out SemVer logic to its own module.
[#12926](https://github.com/rust-lang/cargo/pull/12926)
[#12940](https://github.com/rust-lang/cargo/pull/12940)
- source: Prepare for new `PackageIDSpec` syntax
[#12938](https://github.com/rust-lang/cargo/pull/12938)
- resolver: Consolidate logic in `VersionPreferences`
[#12930](https://github.com/rust-lang/cargo/pull/12930)
- Make the `SourceId::precise` field an Enum.
[#12849](https://github.com/rust-lang/cargo/pull/12849)
- shell: Write at once rather than in fragments.
[#12880](https://github.com/rust-lang/cargo/pull/12880)
- Move up looking at index summary enum
[#12749](https://github.com/rust-lang/cargo/pull/12749)
[#12923](https://github.com/rust-lang/cargo/pull/12923)
- Generate redirection HTML pages in CI for Cargo Contributor Guide.
[#12846](https://github.com/rust-lang/cargo/pull/12846)
- Add new package cache lock modes.
[#12706](https://github.com/rust-lang/cargo/pull/12706)
- Add regression test for issue 6915: features and transitive dev deps.
[#12907](https://github.com/rust-lang/cargo/pull/12907)
- Auto-labeling when PR review state changes.
[#12856](https://github.com/rust-lang/cargo/pull/12856)
- credential: include license files in all published crates.
[#12953](https://github.com/rust-lang/cargo/pull/12953)
- credential: Filter `cargo-credential-*` dependencies by OS.
[#12949](https://github.com/rust-lang/cargo/pull/12949)
- ci: bump cargo-semver-checks to 0.24.0
[#12795](https://github.com/rust-lang/cargo/pull/12795)
- ci: set and verify all MSRVs for Cargo's crates automatically.
[#12767](https://github.com/rust-lang/cargo/pull/12767)
[#12654](https://github.com/rust-lang/cargo/pull/12654)
- ci: use separate concurrency group for publishing Cargo Contributor Book.
[#12834](https://github.com/rust-lang/cargo/pull/12834)
[#12835](https://github.com/rust-lang/cargo/pull/12835)
- ci: update `actions/checkout` action to v4
[#12762](https://github.com/rust-lang/cargo/pull/12762)
- cargo-search: improved the margin calculation for the output.
[#12890](https://github.com/rust-lang/cargo/pull/12890)
## Cargo 1.74 (2023-11-16)
[80eca0e5...rust-1.74.0](https://github.com/rust-lang/cargo/compare/80eca0e5...rust-1.74.0)
### Added
- 🎉 The `[lints]` table has been stabilized, allowing you to configure reporting levels for rustc and other tool lints in `Cargo.toml`.
([RFC 3389](https://github.com/rust-lang/rfcs/blob/master/text/3389-manifest-lint.md))
([docs](https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-lints-section))
[#12584](https://github.com/rust-lang/cargo/pull/12584)
[#12648](https://github.com/rust-lang/cargo/pull/12648)
- 🎉 The unstable features `credential-process` and `registry-auth` have been stabilized.
These features consolidate the way to authenticate with private registries.
([RFC 2730](https://github.com/rust-lang/rfcs/blob/master/text/2730-cargo-token-from-process.md))
([RFC 3139](https://github.com/rust-lang/rfcs/blob/master/text/3139-cargo-alternative-registry-auth.md))
([docs](https://doc.rust-lang.org/nightly/cargo/reference/registry-authentication.html))
[#12590](https://github.com/rust-lang/cargo/pull/12590)
[#12622](https://github.com/rust-lang/cargo/pull/12622)
[#12623](https://github.com/rust-lang/cargo/pull/12623)
[#12626](https://github.com/rust-lang/cargo/pull/12626)
[#12641](https://github.com/rust-lang/cargo/pull/12641)
[#12644](https://github.com/rust-lang/cargo/pull/12644)
[#12649](https://github.com/rust-lang/cargo/pull/12649)
[#12671](https://github.com/rust-lang/cargo/pull/12671)
[#12709](https://github.com/rust-lang/cargo/pull/12709)
Notable changes:
- Introducing a new protocol for both external and built-in providers to store and retrieve credentials for registry authentication.
- Adding the `auth-required` field in the registry index's `config.json`, enabling authenticated sparse index, crate downloads, and search API.
- For using alternative registries with authentication, a credential provider must be configured to avoid unknowingly storing unencrypted credentials on disk.
- These settings can be configured in `[registry]` and `[registries]` tables.
- 🎉 `--keep-going` flag has been stabilized and is now available in each build command
(except `bench` and `test`, which have `--no-fail-fast` instead).
([docs](https://doc.rust-lang.org/cargo/commands/cargo-build.html#option-cargo-build---keep-going))
[#12568](https://github.com/rust-lang/cargo/pull/12568)
- Added `--dry-run` flag and summary line at the end for `cargo clean`.
[#12638](https://github.com/rust-lang/cargo/pull/12638)
- Added a short alias `-n` for cli option `--dry-run`.
[#12660](https://github.com/rust-lang/cargo/pull/12660)
- Added support for `target.'cfg(..)'.linker`.
[#12535](https://github.com/rust-lang/cargo/pull/12535)
- Allowed incomplete versions when they are unambiguous for flags like `--package`.
[#12591](https://github.com/rust-lang/cargo/pull/12591)
[#12614](https://github.com/rust-lang/cargo/pull/12614)
[#12806](https://github.com/rust-lang/cargo/pull/12806)
### Changed
- ❗️ Changed how arrays in configuration are merged.
The order was unspecified and now follows how other configuration types work for consistency.
[summary](https://blog.rust-lang.org/inside-rust/2023/08/24/cargo-config-merging.html)
[#12515](https://github.com/rust-lang/cargo/pull/12515)
- ❗️ cargo-clean: error out if `--doc` is mixed with `-p`.
[#12637](https://github.com/rust-lang/cargo/pull/12637)
- ❗ cargo-new / cargo-init no longer exclude `Cargo.lock` in VCS ignore files for libraries.
[#12382](https://github.com/rust-lang/cargo/pull/12382)
- cargo-update: silently deprecate `--aggressive` in favor of the new `--recursive`.
[#12544](https://github.com/rust-lang/cargo/pull/12544)
- cargo-update: `-p/--package` can be used as a positional argument.
[#12545](https://github.com/rust-lang/cargo/pull/12545)
[#12586](https://github.com/rust-lang/cargo/pull/12586)
- cargo-install: suggest `--git` when the package name looks like a URL.
[#12575](https://github.com/rust-lang/cargo/pull/12575)
- cargo-add: summarize the feature list when it's too long.
[#12662](https://github.com/rust-lang/cargo/pull/12662)
[#12702](https://github.com/rust-lang/cargo/pull/12702)
- Shell completion for `--target` uses rustup but falls back to rustc.
[#12606](https://github.com/rust-lang/cargo/pull/12606)
- Help users know possible `--target` values.
[#12607](https://github.com/rust-lang/cargo/pull/12607)
- Enhanced "registry index not found" error message.
[#12732](https://github.com/rust-lang/cargo/pull/12732)
- Enhanced CLI help message of `--explain`.
[#12592](https://github.com/rust-lang/cargo/pull/12592)
- Enhanced deserialization errors of untagged enums with `serde-untagged`.
[#12574](https://github.com/rust-lang/cargo/pull/12574)
[#12581](https://github.com/rust-lang/cargo/pull/12581)
- Enhanced the error when mismatching prerelease version candidates.
[#12659](https://github.com/rust-lang/cargo/pull/12659)
- Enhanced the suggestion on ambiguous Package ID spec.
[#12685](https://github.com/rust-lang/cargo/pull/12685)
- Enhanced TOML parse errors to show the context.
[#12556](https://github.com/rust-lang/cargo/pull/12556)
- Enhanced filesystem error by adding wrappers around `std::fs::metadata`.
[#12636](https://github.com/rust-lang/cargo/pull/12636)
- Enhanced resolver version mismatch warning.
[#12573](https://github.com/rust-lang/cargo/pull/12573)
- Use clap to suggest alternative argument for unsupported arguments.
[#12529](https://github.com/rust-lang/cargo/pull/12529)
[#12693](https://github.com/rust-lang/cargo/pull/12693)
[#12723](https://github.com/rust-lang/cargo/pull/12723)
- Removed redundant information from cargo new/init `--help` output.
[#12594](https://github.com/rust-lang/cargo/pull/12594)
- Console output and styling tweaks.
[#12578](https://github.com/rust-lang/cargo/pull/12578)
[#12655](https://github.com/rust-lang/cargo/pull/12655)
[#12593](https://github.com/rust-lang/cargo/pull/12593)
### Fixed
- Use full target spec for `cargo rustc --print --target`.
[#12743](https://github.com/rust-lang/cargo/pull/12743)
- Copy PDBs also for EFI targets.
[#12688](https://github.com/rust-lang/cargo/pull/12688)
- Fixed resolver behavior being independent of package order.
[#12602](https://github.com/rust-lang/cargo/pull/12602)
- Fixed unnecessary clean up of `profile.release.package."*"` for `cargo remove`.
[#12624](https://github.com/rust-lang/cargo/pull/12624)
### Nightly only
- `-Zasymmetric-token`: Created dedicated unstable flag for asymmetric-token support.
[#12551](https://github.com/rust-lang/cargo/pull/12551)
- `-Zasymmetric-token`: Improved logout message for asymmetric tokens.
[#12587](https://github.com/rust-lang/cargo/pull/12587)
- `-Zmsrv-policy`: **Very** preliminary MSRV resolver support.
[#12560](https://github.com/rust-lang/cargo/pull/12560)
- `-Zscript`: Hack in code fence support.
[#12681](https://github.com/rust-lang/cargo/pull/12681)
- `-Zbindeps`: Support dependencies from registries.
[#12421](https://github.com/rust-lang/cargo/pull/12421)
### Documentation
- ❗ Policy change: Checking `Cargo.lock` into version control is now the default choice,
even for libraries. Lockfile and CI integration documentations are also expanded.
[Policy docs](https://doc.rust-lang.org/nightly/cargo/faq.html#why-have-cargolock-in-version-control),
[Lockfile docs](https://doc.rust-lang.org/nightly/cargo/guide/cargo-toml-vs-cargo-lock.html),
[CI docs](https://doc.rust-lang.org/nightly/cargo/guide/continuous-integration.html),
[#12382](https://github.com/rust-lang/cargo/pull/12382)
[#12630](https://github.com/rust-lang/cargo/pull/12630)
- SemVer: Update documentation about removing optional dependencies.
[#12687](https://github.com/rust-lang/cargo/pull/12687)
- Contrib: Add process for security responses.
[#12487](https://github.com/rust-lang/cargo/pull/12487)
- cargo-publish: warn about upload timeout.
[#12733](https://github.com/rust-lang/cargo/pull/12733)
- mdbook: use *AND* search when having multiple terms.
[#12548](https://github.com/rust-lang/cargo/pull/12548)
- Established publish best practices
[#12745](https://github.com/rust-lang/cargo/pull/12745)
- Clarify caret requirements.
[#12679](https://github.com/rust-lang/cargo/pull/12679)
- Clarify how `version` works for `git` dependencies.
[#12270](https://github.com/rust-lang/cargo/pull/12270)
- Clarify and differentiate defaults for split-debuginfo.
[#12680](https://github.com/rust-lang/cargo/pull/12680)
- Added missing `strip` entries in `dev` and `release` profiles.
[#12748](https://github.com/rust-lang/cargo/pull/12748)
### Internal
- Updated to `curl-sys` 0.4.66, which corresponds to curl 8.3.0.
[#12718](https://github.com/rust-lang/cargo/pull/12718)
- Updated to `gitoxide` 0.54.1.
[#12731](https://github.com/rust-lang/cargo/pull/12731)
- Updated to `git2` 0.18.0, which corresponds to libgit2 1.7.1.
[#12580](https://github.com/rust-lang/cargo/pull/12580)
- Updated to `cargo_metadata` 0.17.0.
[#12758](https://github.com/rust-lang/cargo/pull/12610)
- Updated target-arch-aware crates to support mips r6 targets
[#12720](https://github.com/rust-lang/cargo/pull/12720)
- publish.py: Remove obsolete `sleep()` calls.
[#12686](https://github.com/rust-lang/cargo/pull/12686)
- Define `{{command}}` for use in src/doc/man/includes
[#12570](https://github.com/rust-lang/cargo/pull/12570)
- Set tracing target `network` for networking messages.
[#12582](https://github.com/rust-lang/cargo/pull/12582)
- cargo-test-support: Add `with_stdout_unordered`.
[#12635](https://github.com/rust-lang/cargo/pull/12635)
- dep: Switch from `termcolor` to `anstream`.
[#12751](https://github.com/rust-lang/cargo/pull/12751)
- Put `Source` trait under `cargo::sources`.
[#12527](https://github.com/rust-lang/cargo/pull/12527)
- SourceId: merge `name` and `alt_registry_key` into one enum.
[#12675](https://github.com/rust-lang/cargo/pull/12675)
- TomlManifest: fail when package_root is not a directory.
[#12722](https://github.com/rust-lang/cargo/pull/12722)
- util: enhanced doc of `network::retry` doc.
[#12583](https://github.com/rust-lang/cargo/pull/12583)
- refactor: Pull out cargo-add MSRV code for reuse
[#12553](https://github.com/rust-lang/cargo/pull/12553)
- refactor(install): Move value parsing to clap
[#12547](https://github.com/rust-lang/cargo/pull/12547)
- Fixed spurious errors with networking tests.
[#12726](https://github.com/rust-lang/cargo/pull/12726)
- Use a more compact relative-time format for `CARGO_LOG` internal logging.
[#12542](https://github.com/rust-lang/cargo/pull/12542)
- Use newer std API for cleaner code.
[#12559](https://github.com/rust-lang/cargo/pull/12559)
[#12604](https://github.com/rust-lang/cargo/pull/12604)
[#12615](https://github.com/rust-lang/cargo/pull/12615)
[#12631](https://github.com/rust-lang/cargo/pull/12631)
- Buffer console status messages.
[#12727](https://github.com/rust-lang/cargo/pull/12727)
- Use enum to describe index summaries to provide a richer information when summaries are not available for resolution.
[#12643](https://github.com/rust-lang/cargo/pull/12643)
- Use shortest path for resolving the path from the given dependency up to the root.
[#12678](https://github.com/rust-lang/cargo/pull/12678)
- Read/write the encoded `cargo update --precise` in the same place
[#12629](https://github.com/rust-lang/cargo/pull/12629)
- Set MSRV for internal packages.
[#12381](https://github.com/rust-lang/cargo/pull/12381)
- ci: Update Renovate schema
[#12741](https://github.com/rust-lang/cargo/pull/12741)
- ci: Ignore patch version in MSRV
[#12716](https://github.com/rust-lang/cargo/pull/12716)
## Cargo 1.73 (2023-10-05)
[45782b6b...rust-1.73.0](https://github.com/rust-lang/cargo/compare/45782b6b...rust-1.73.0)
### Added
- Print environment variables for `cargo run/bench/test` in extra verbose mode `-vv`.
[#12498](https://github.com/rust-lang/cargo/pull/12498)
- Display package versions on Cargo timings graph.
[#12420](https://github.com/rust-lang/cargo/pull/12420)
### Changed
- ❗️ Cargo now bails out when using `cargo::` in custom build scripts. This is
a preparation for an upcoming change in build script invocations.
[#12332](https://github.com/rust-lang/cargo/pull/12332)
- ❗️ `cargo login` no longer accept any token after the `--` syntax.
Arguments after `--` are now reserved in the preparation of the new credential provider feature.
This introduces a regression that overlooks the `cargo login -- <token>` support in preivous versions.
[#12499](https://github.com/rust-lang/cargo/pull/12499)
- Make Cargo `--help` easier to browse.