target_spec_miette/lib.rs
1// Copyright (c) The cargo-guppy Contributors
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! Integrate [target-spec](https://crates.io/crates/target-spec) errors with [miette](https://docs.rs/miette).
5//!
6//! This crate has implementations of `Diagnostic` for the various kinds of errors that target-spec
7//! produces. This can be used to pretty-print errors returned by target-spec.
8//!
9//! ## Features
10//!
11//! - `fixtures`: Include [a set of fixtures](crate::fixtures) for testing
12//! downstream users against. This feature is disabled by default.
13//!
14//! ## Minimum supported Rust version
15//!
16//! The minimum supported Rust version (MSRV) is **Rust 1.78**.
17//!
18//! While this crate is in pre-release status (0.x), the MSRV may be bumped in
19//! patch releases.
20
21#![warn(missing_docs)]
22#![forbid(unsafe_code)]
23#![cfg_attr(doc_cfg, feature(doc_cfg, doc_auto_cfg))]
24
25#[cfg(feature = "fixtures")]
26pub mod fixtures;
27mod imp;
28
29pub use imp::*;