Commit 40b9fec
committed
fix(toml): Ensure targets are in a deterministic order
With rust-lang#13713, we enumerate all targets in `Cargo.toml` on `cargo publish`
and `cargo vendor`.
However, the order of the targets is non-determistic.
This can be annoying for comparing the published `Cargo.toml` across releases but even
worse is the churn it causes for `cargo vendor`.
So we sort all the targets during publish.
This keeps costs minimal with the following risks
- If the non-determinism shows up in a way that affects developers
during development
- If there is a reason the user wants to control target order for
explicit targets
Fixes rust-lang#139881 parent 0b72605 commit 40b9fec
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2777 | 2777 | | |
2778 | 2778 | | |
2779 | 2779 | | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
2780 | 2785 | | |
2781 | 2786 | | |
2782 | 2787 | | |
| |||
0 commit comments