Expand description
Integrate target-spec errors with miette.
This crate has implementations of Diagnostic for the various kinds of errors that target-spec
produces. This can be used to pretty-print errors returned by target-spec.
§Features
fixtures: Include a set of fixtures for testing downstream users against. This feature is disabled by default.
§Minimum supported Rust version
The minimum supported Rust version (MSRV) is Rust 1.86.
While this crate is in pre-release status (0.x), the MSRV may be bumped in patch releases.
Modules§
- fixtures
fixtures - Fixtures for target-spec-miette.
Structs§
- Custom
Triple Create Diagnostic - A wrapper around
CustomTripleCreateErrorthat implementsDiagnostic. - Expression
Parse Diagnostic - A wrapper around
ExpressionParseErrorthat implementsDiagnostic. - Plain
String Parse Diagnostic - A wrapper around
PlainStringParseErrorthat implementsDiagnostic. - Triple
Parse Diagnostic - A wrapper around
TripleParseErrorthat implementsDiagnostic.
Traits§
- Into
Miette Diagnostic - Extension trait that converts errors into a
miette::Diagnostic.