xpct/
lib.rs

1/*!
2xpct is an extensible test assertion library for Rust.
3
4It's designed to be ergonomic, batteries-included, and test framework agnostic.
5
6If you're new here, you may want to check out the [Tutorial][crate::docs::tutorial] and the rest of
7the [User Docs][crate::docs].
8*/
9
10#![cfg_attr(docsrs, feature(doc_auto_cfg))]
11#![cfg_attr(docsrs, feature(doc_cfg_hide))]
12#![forbid(unsafe_code)]
13#![warn(missing_docs)]
14#![warn(missing_debug_implementations)]
15// Disabling this feature does not change the public API, but the documentation makes it appear as
16// if it does.
17#![cfg_attr(docsrs, doc(cfg_hide(feature = "color")))]
18// While technically accurate and potentially helpful, this feature flag adds a lot of unnecessary
19// noise to the API docs.
20#![cfg_attr(docsrs, doc(cfg_hide(feature = "fmt")))]
21
22// Test code snippets in the README.
23
24#[cfg(doctest)]
25use doc_comment::doctest;
26
27#[cfg(all(doctest, feature = "regex"))]
28doctest!("../README.md");
29
30pub mod core;
31pub mod docs;
32mod error;
33pub mod matchers;
34mod sealed;
35
36pub(crate) use sealed::Sealed;
37
38#[cfg(feature = "fmt")]
39pub mod format;
40
41#[cfg(feature = "fmt")]
42pub use format::matchers::*;
43
44pub use error::{Error, Result};