Commit 2b4c5ac8 authored by Éloïs's avatar Éloïs

[enh] #68 add main

parent d6adcc34
This diff is collapsed.
[package]
name = "durs"
version = "0.1.0"
authors = ["librelois <elois@duniter.org>","nanocryk <nanocryk@duniter.org>"]
description = "DUniter-RS (durs) is a new implementation of Duniter protocol and software in Rust, a safe, concurrent, practical language"
license = "AGPL-3.0"
[dependencies]
clap = "2.31.2"
duniter-core = { path = "./core" }
duniter-tui = { path = "./tui" }
duniter-ws2p = { path = "./ws2p" }
lazy_static = "1.0.0"
serde_json = "1.0.9"
websocket = "0.20.2"
[workspace]
members = [
"wotb",
"blockchain",
"conf",
"core",
"crypto",
"dal",
"documents",
"message",
"module",
"network",
"tui",
"wotb",
"ws2p",
]
extern crate duniter_core;
extern crate duniter_tui;
extern crate duniter_ws2p;
use duniter_core::DuniterCore;
use duniter_tui::TuiModule;
use duniter_ws2p::WS2PModule;
fn main() {
// Get software name and version
let soft_name = env!("CARGO_PKG_NAME");
let soft_version = env!("CARGO_PKG_VERSION");
// Run duniter core
if let Some(mut duniter_core) = DuniterCore::new(soft_name, soft_version) {
duniter_core.plug::<WS2PModule>();
duniter_core.plug::<TuiModule>();
//duniter_core.plug::<PoolModule>();
//duniter_core.plug::<PowModule>();
//duniter_core.plug::<GvaModule>();
//duniter_core.plug::<DasaModule>();
//duniter_core.plug::<GuiModule>();
duniter_core.start_blockchain();
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment