reporting

Crates.ioreporting
lib.rsreporting
version0.1.4
sourcesrc
created_at2024-07-11 07:27:50.558235
updated_at2024-11-02 12:17:03.796642
descriptionSimple diagnostic reporting for compilers
homepage
repositoryhttps://github.com/pzipper/reporting
max_upload_size
id1299264
size847,988
Zack (pzipper)

documentation

README

reporting Crates.io Version docs.rs

Simple diagnostic reporting for compilers.

use reporting::{error, note, File, Location, Renderer, Styles};

fn main() {
    let file = File::new("test.txt", "import stds;");
    let styles = Styles::styled();

    print!(
        "{}",
        Renderer::new(
            &styles,
            &[
                error!("Could not find package `{}`", "stds")
                    .location(Location::new(file.clone(), 7)),
                note!("Perhaps you meant `std`?")
            ]
        )
    )
}
Commit count: 9

cargo fmt