1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use std::borrow::Cow;
use locutus_core::ClientRequest;
pub mod build_tool;
pub mod config;
pub mod local_node;
pub mod new_pckg;
pub mod util;
type CommandReceiver = tokio::sync::mpsc::Receiver<ClientRequest>;
type CommandSender = tokio::sync::mpsc::Sender<ClientRequest>;
type DynError = Box<dyn std::error::Error + Send + Sync + 'static>;
#[derive(Debug, thiserror::Error)]
enum Error {
#[error("Configuration error: {0}")]
MissConfiguration(Cow<'static, str>),
#[error("Command failed: {0}")]
CommandFailed(&'static str),
}