You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
932 B

4 years ago
#![cfg_attr(nightly, feature(never_type))]
4 years ago
#![allow(dead_code)]
4 years ago
#![allow(unused_imports)]
4 years ago
#[macro_use] extern crate log;
use jemallocator::Jemalloc;
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;
4 years ago
use color_eyre::{
eyre::{
self, eyre,
WrapErr as _,
},
SectionExt as _,
Help as _,
4 years ago
};
use futures::{
prelude::*,
};
use lazy_static::lazy_static;
4 years ago
use getrandom::getrandom;
4 years ago
use smallmap::smallmap;
4 years ago
use serde::{
Serialize,
Deserialize,
};
4 years ago
fn install() -> eyre::Result<()>
{
color_eyre::install()?;
pretty_env_logger::init();
trace!("init oke");
Ok(())
}
4 years ago
mod ext;
use ext::*;
mod util;
4 years ago
mod conv;
4 years ago
mod args;
#[cfg(feature="server")] mod server;
#[cfg(feature="client")] mod client;
#[tokio::main]
async fn main() -> eyre::Result<()> {
install()
.wrap_err(eyre!("Failed to install handlers"))?;
//TODO: Parse args and delegate to client or server
Ok(())
}