Crate target_spec_miette

Source
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§

fixturesfixtures
Fixtures for target-spec-miette.

Structs§

CustomTripleCreateDiagnostic
A wrapper around [CustomTripleCreateError] that implements [Diagnostic].
ExpressionParseDiagnostic
A wrapper around [ExpressionParseError] that implements [Diagnostic].
PlainStringParseDiagnostic
A wrapper around [PlainStringParseError] that implements [Diagnostic].
TripleParseDiagnostic
A wrapper around [TripleParseError] that implements [Diagnostic].

Traits§

IntoMietteDiagnostic
Extension trait that converts errors into a [miette::Diagnostic].