From 29076da4b753c1a67c0b1053620f0543c9b61b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Wed, 13 Jul 2016 11:10:43 +0200 Subject: [PATCH] UI feature --- Cargo.toml | 5 ++--- parity/configuration.rs | 2 +- parity/dapps.rs | 8 ++++---- parity/main.rs | 2 +- signer/Cargo.toml | 5 +++-- signer/src/lib.rs | 2 +- signer/src/ws_server/session.rs | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 667335e39..281ea6243 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,13 +29,13 @@ ethsync = { path = "sync" } ethcore-devtools = { path = "devtools" } ethcore-rpc = { path = "rpc" } ethcore-signer = { path = "signer" } -ethcore-dapps = { path = "dapps", optional = true } semver = "0.2" ethcore-ipc-nano = { path = "ipc/nano" } ethcore-ipc = { path = "ipc/rpc" } ethcore-ipc-hypervisor = { path = "ipc/hypervisor" } json-ipc-server = { git = "https://github.com/ethcore/json-ipc-server.git" } ansi_term = "0.7" +ethcore-dapps = { path = "dapps", optional = true } [target.'cfg(windows)'.dependencies] winapi = "0.2" @@ -48,8 +48,7 @@ version = "0.8" default-features = false [features] -default = ["dapps"] -no-ui = ["ethcore-signer/no-ui"] +default = ["dapps", "ethcore-signer/ui"] dapps = ["ethcore-dapps"] dev = ["clippy", "ethcore/dev", "ethcore-util/dev", "ethsync/dev", "ethcore-rpc/dev", "ethcore-dapps/dev", "ethcore-signer/dev"] diff --git a/parity/configuration.rs b/parity/configuration.rs index 6644e3437..f41784bc1 100644 --- a/parity/configuration.rs +++ b/parity/configuration.rs @@ -561,7 +561,7 @@ impl Configuration { } pub fn dapps_enabled(&self) -> bool { - !self.args.flag_dapps_off && !self.args.flag_no_dapps && cfg!(not(feature = "no-ui")) + !self.args.flag_dapps_off && !self.args.flag_no_dapps && cfg!(feature = "dapps") } pub fn signer_enabled(&self) -> bool { diff --git a/parity/dapps.rs b/parity/dapps.rs index 67b6ce280..917c59fc6 100644 --- a/parity/dapps.rs +++ b/parity/dapps.rs @@ -21,9 +21,9 @@ use util::panics::PanicHandler; use die::*; use rpc_apis; -#[cfg(all(feature = "dapps", not(feature = "no-ui")))] +#[cfg(feature = "dapps")] pub use ethcore_dapps::Server as WebappServer; -#[cfg(any(not(feature = "dapps"), feature = "no-ui"))] +#[cfg(not(feature = "dapps"))] pub struct WebappServer; pub struct Configuration { @@ -62,7 +62,7 @@ pub fn new(configuration: Configuration, deps: Dependencies) -> Option