1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
extern crate gu_actix; extern crate gu_base; extern crate gu_ethkey; extern crate gu_event_bus; extern crate gu_hardware; extern crate gu_lan; extern crate gu_net; extern crate gu_persist; extern crate serde; extern crate serde_json; extern crate actix; extern crate actix_web; extern crate futures; #[macro_use] extern crate serde_derive; #[macro_use] extern crate log; #[macro_use] extern crate actix_derive; #[macro_use] extern crate prettytable; extern crate bytes; extern crate clap; extern crate mdns; extern crate semver; extern crate sha1; extern crate zip; use clap::App; use gu_base::*; use gu_persist::daemon_module; const VERSION: &str = env!("CARGO_PKG_VERSION"); mod peer; mod plugins; mod proxy_service; mod server; mod sessions; fn main() { GuApp(|| App::new("Golem Unlimited").version(VERSION)).run( LogModule .chain(AutocompleteModule::new()) .chain(gu_persist::config::ConfigModule::new()) .chain(gu_lan::module::LanModule::module()) .chain(plugins::PluginModule::new()) .chain(sessions::SessionsModule::default()) .chain(proxy_service::module()) .chain(peer::PeerModule::new()) .chain(gu_hardware::module()) .chain(daemon_module::DaemonModule::hub()) .chain(server::ServerModule::new()), ); }