Expand description
Simple diagnostic reporting for compilers.
use reporting::{error, note, File, Location, Renderer, Styles};
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`?")
]
)
);Re-exports§
pub use anstyle;
Macros§
- format macro which creates a
Severity::Bugreport. - format macro which creates a
Severity::Errorreport. - format macro which creates a
Severity::Notereport. - format macro which creates a
Severity::Warningreport.
Structs§
- Information about a file.
- A location in a file.
- A renderer for diagnostic reports.
- A diagnostic report.
- The styles used to render Reports.
Enums§
- The severity of a diagnostic.