Skip to main content

Crate covalence_lib_error

Crate covalence_lib_error 

Source
Expand description

Error handling tools shared by Covalence crates.

An internal facade (a crate that re-exports other crates) for Covalence’s own crates. Its API may change without notice.

  • snafu: concrete, matchable library errors, defined in the crate that owns the operation.
  • miette: diagnostics at user-facing boundaries. Native applications may enable fancy for terminal rendering.
  • Derive through the re-exported crate roots. For SNAFU, set #[snafu(crate_root(covalence_lib_error::snafu))] in downstream crates.
  • This crate does not define a universal domain error type.

Re-exports§

pub use miette;
pub use snafu;

Type Aliases§

BoxError
A boxed, thread-safe error for sources whose concrete type is not exposed.