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.78.
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 [
CustomTripleCreateError
] that implements [Diagnostic
]. - Expression
Parse Diagnostic - A wrapper around [
ExpressionParseError
] that implements [Diagnostic
]. - Plain
String Parse Diagnostic - A wrapper around [
PlainStringParseError
] that implements [Diagnostic
]. - Triple
Parse Diagnostic - A wrapper around [
TripleParseError
] that implements [Diagnostic
].
Traits§
- Into
Miette Diagnostic - Extension trait that converts errors into a [
miette::Diagnostic
].