use-diagnostic
Facade crate for RustUse diagnostic primitives.
use-diagnostic reexports the focused crates in the diagnostic set. It is a primitive vocabulary for codes, levels, messages, spans, labels, diagnostics, and reports.
It is not an error framework, logging framework, terminal renderer, CLI output system, or compiler diagnostic system.
Reexports
use_diagnostic_codeuse_diagnostic_leveluse_diagnostic_messageuse_diagnostic_spanuse_diagnostic_labeluse_diagnostic_report
Example
use ;
let code = new.unwrap;
let message = new.unwrap;
let start = new.unwrap;
let end = new.unwrap;
let span = without_source.unwrap;
let label = primary;
let diagnostic = new
.with_code
.with_label;
let mut report = new;
report.add;
assert!;
Scope
The facade keeps implementation minimal. It provides reexports and a shared prelude only.
Status
use-diagnostic is a pre-1.0 facade for the focused diagnostic primitive crates.