UI feature

This commit is contained in:
Tomasz Drwięga
2016-07-13 11:10:43 +02:00
parent 11cae70cdd
commit 29076da4b7
7 changed files with 14 additions and 14 deletions

View File

@@ -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 {

View File

@@ -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<WebappSer
Some(setup_dapps_server(deps, configuration.dapps_path, &addr, auth))
}
#[cfg(any(not(feature = "dapps"), feature = "no-ui"))]
#[cfg(not(feature = "dapps"))]
pub fn setup_dapps_server(
_deps: Dependencies,
_dapps_path: String,
@@ -72,7 +72,7 @@ pub fn setup_dapps_server(
die!("Your Parity version has been compiled without WebApps support.")
}
#[cfg(all(feature = "dapps", not(feature = "no-ui")))]
#[cfg(feature = "dapps")]
pub fn setup_dapps_server(
deps: Dependencies,
dapps_path: String,

View File

@@ -51,7 +51,7 @@ extern crate ethcore_rpc;
extern crate ethcore_signer;
extern crate ansi_term;
#[cfg(all(feature = "dapps", not(feature = "no-ui")))]
#[cfg(feature = "dapps")]
extern crate ethcore_dapps;
#[macro_use]