cargo-ndk
cargo-ndk copied to clipboard
Allow specifying message format as an argument
I'm using cargo-ndk as a rust-analyzer.check.overrideCommand in vscode.
As follows
cargo ndk check --message-format=json-diagnostic-rendered-ansi --keep-going
Currently, if the command would see any errors, the output would be captured and printed human-style.
This merge request checks, if user has overridden the message format. The printout is also selected to be json or formatted, depending on the argument. Based on list at https://doc.rust-lang.org/cargo/commands/cargo-check.html#display-options
This would interfere with the message handling already implemented to determine what the output dependencies are, so requires more thought.