#check #cargo-check #analyze #compile #build #cli-tool #rls

bin+lib coral

A library that parses output from cargo check, and a cli tool that uses the library to print compact error messages

14 releases (8 breaking)

0.9.2 Aug 8, 2019
0.8.1 Aug 8, 2019
0.8.0 Jun 27, 2019

#681 in Debugging

43 downloads per month

MIT license

650KB
857 lines

Description

This crate provides both a library and a CLI tool.

  • The library implements a parser for the output of cargo check --message-format json. It also provides an interface for directly invoking cargo and parsing.
  • The CLI tool uses the library to provide compact error reporting for Rust projects

On crates.io

Documentation

Demo

Demo Gif

Installation

Installation requires cargo, and is very simple:

cargo install coral

lib.rs:

This crate parses the output of cargo check --message-format json into transparent data structures.

The main entrypoint for running cargo and parsing output is the Analyzer struct.

Dependencies

~2–10MB
~95K SLoC