rs-zero 0.1.1

Rust-first microservice framework inspired by go-zero engineering practices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

/// Result type used by rs-zero core helpers.
pub type CoreResult<T> = Result<T, CoreError>;

/// Errors produced by core configuration, logging, and service helpers.
#[derive(Debug, Error)]
pub enum CoreError {
    #[error("configuration error: {0}")]
    Config(#[from] config::ConfigError),

    #[error("subscriber initialization failed")]
    SubscriberInit,

    #[error("service error: {0}")]
    Service(String),
}