spl_program_error/
lib.rs

1//! Crate defining a library with a procedural macro and other
2//! dependencies for building Solana program errors
3
4#![deny(missing_docs)]
5#![cfg_attr(not(test), forbid(unsafe_code))]
6
7extern crate self as spl_program_error;
8
9// Make these available downstream for the macro to work without
10// additional imports
11pub use {
12    num_derive, num_traits, solana_decode_error, solana_msg, solana_program_error,
13    spl_program_error_derive::{
14        spl_program_error, DecodeError, IntoProgramError, PrintProgramError,
15    },
16    thiserror,
17};