#check #cargo-check #compile #analyze #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

#624 in Debugging

Download history 17/week @ 2024-02-20 9/week @ 2024-02-27 6/week @ 2024-03-12 1/week @ 2024-03-26 67/week @ 2024-04-02

74 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–12MB
~100K SLoC