Commit ea44703
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 ea44703
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2777 | 2777 | | |
2778 | 2778 | | |
2779 | 2779 | | |
| 2780 | + | |
| 2781 | + | |
2780 | 2782 | | |
2781 | 2783 | | |
2782 | 2784 | | |
| |||
0 commit comments