mikros 0.3.0

An optionated crate to help building multi-purpose applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::definition;

// Module internal errors
crate::module_errors!(
    Error {
        EmptyServiceFound => "cannot execute without a service implementation",
        FeatureNotFound(f: String) => "feature '{}' not found",
        UnsupportedServicesExecutionMode => "unsupported services execution mode",
        ServiceKindUninitialized(k: definition::ServiceKind) => "service type uninitialized: {}",
        FeatureDisabled(f: String) => "feature '{}' is disabled",
        ServiceAlreadyInitialized(k: String) => "service '{}' already initialized",
        ServiceNotFound(s: String) => "service '{}' implementation not found"
    }
);