actions-rs / meta

🦀 GitHub Actions for Rust - recipes, discussions, questions and ideas
https://github.com/actions-rs
Creative Commons Zero v1.0 Universal
353 stars 15 forks source link

cargo tomlfmt #20

Open thomaseizinger opened 4 years ago

thomaseizinger commented 4 years ago

We use the cargo-tomlfmt binary to enforce a certain formatting of the Cargo.toml files.

Specifically, we sort the list of dependencies alphabetically which helps with avoiding merge conflicts.

Would you consider creating an action that allows to use this tool without having to install it every time? Installing it takes somewhere around 4 minutes.

References:

svartalf commented 4 years ago

Yeah, cargo install command is incredibly slow, but at this point this thing is blocked by https://github.com/actions-rs/meta/issues/21. I presume, it would be possible to make some kind of an opaque cache, which is automatically caches the artefacts generated by any cargo install command invoked; see linked issue for more details about that.