You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes I observe they need formatting accordingly one after the order and documenting how this can be treated in the future. I will love to work on this to get our TOML files clean and sorted.
I did zero research on viable solutions, so it would be great if you could summarize and we could discuss the available options here before opening a PR
I did a research on available formatting tools for TOML files, especially Cargo.toml. And I found this tools worth reviewing:
Taplo: A versatile, feature-rich TOML toolkit. It is actively maintained, supports formatting and linting, and integrates well with CI.
cargo-sort: Cargo-sort crate can help us sort dependencies alphabetically in Cargo.toml.
This 2 tools when combined will achieve the desired result since it formats TOML files automatically and can be run from command line, we will end up with clean TOML files.
We can also update the CI file and add taplo format --check to enforce formatting. Let me know what you think about this approach.
Activity
Cyber-Lord commentedon Aug 29, 2025
Yes I observe they need formatting accordingly one after the order and documenting how this can be treated in the future. I will love to work on this to get our TOML files clean and sorted.
nothingmuch commentedon Aug 29, 2025
Thanks @Cyber-Lord! I assigned you.
I did zero research on viable solutions, so it would be great if you could summarize and we could discuss the available options here before opening a PR
Cyber-Lord commentedon Aug 29, 2025
Hi @nothingmuch,
I did a research on available formatting tools for TOML files, especially Cargo.toml. And I found this tools worth reviewing:
This 2 tools when combined will achieve the desired result since it formats TOML files automatically and can be run from command line, we will end up with clean TOML files.
We can also update the CI file and add
taplo format --checkto enforce formatting. Let me know what you think about this approach.Thank you
ci: enforce TOML formatting with taplo in CI
benalleng commentedon Jun 8, 2026
Closed by #1221