olix0r / cargo-action-fmt

Converts cargo check (and clippy) JSON output to the GitHub Action error format
MIT License
12 stars 2 forks source link

cargo fmt #114

Open cryptoquick opened 1 year ago

cryptoquick commented 1 year ago

Does this also work with cargo fmt ? Like this:

cargo fmt --all -- --check

If so, maybe adding an example of that also might be helpful, since this seems to require special JSON arguments.

olix0r commented 1 year ago

I updated the README to indicate that cargo fmt is not supported currently. cargo +nightly fmt -- --emit=json can emit JSON-formatted output (only on nightly), but deviates significantly from the rest of the cargo JSON scheme, so that won't work without further changes.