Skip to main content

Crate rust_rapport

Crate rust_rapport 

Source
Expand description

Formats cargo clippy --message-format json output for GitHub Actions.

Read diagnostics from a BufRead stream, filter errors and warnings, and write the result to a Write sink using one of the three Mode variants.

use std::io;
use rust_rapport::{Mode, run};

run(Mode::GithubSummary, io::stdin().lock(), io::stdout().lock(), io::stderr().lock())?;

Enums§

Error
Errors returned by run.
Mode
Output mode selected at the CLI.

Functions§

run
Reads clippy JSON from reader, formats according to mode, writes to writer.