Encrypted peer-to-peer IM for data security. Own data, own privacy. (Rust+Flutter)
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.
 
 
 
 
 
 

32 lines
490 B

#[macro_use]
extern crate log;
#[macro_use]
extern crate anyhow;
use std::env::args;
mod account;
mod apps;
mod consensus;
mod event;
mod group;
mod layer;
mod migrate;
mod primitives;
mod rpc;
mod server;
mod session;
mod storage;
mod utils;
#[tokio::main]
async fn main() {
let db_path = args().nth(1).unwrap_or("./.tdn".to_owned());
if std::fs::metadata(&db_path).is_err() {
std::fs::create_dir(&db_path).unwrap();
}
let _ = server::start(db_path).await;
}