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

@@ -18,10 +18,11 @@ env_logger = "0.3"
ws = { git = "https://github.com/ethcore/ws-rs.git", branch = "stable" }
ethcore-util = { path = "../util" }
ethcore-rpc = { path = "../rpc" }
parity-dapps-signer = { git = "https://github.com/ethcore/parity-ui.git", version = "0.2.0" }
parity-dapps-signer = { git = "https://github.com/ethcore/parity-ui.git", version = "0.2.0", optional = true}
clippy = { version = "0.0.79", optional = true}
[features]
default = ["ui"]
dev = ["clippy"]
no-ui = []
ui = ["parity-dapps-signer"]

View File

@@ -51,7 +51,7 @@ extern crate ethcore_util as util;
extern crate ethcore_rpc as rpc;
extern crate jsonrpc_core;
extern crate ws;
#[cfg(not(feature = "no-ui"))]
#[cfg(feature = "ui")]
extern crate parity_dapps_signer as signer;
mod authcode_store;

View File

@@ -24,7 +24,7 @@ use std::str::FromStr;
use jsonrpc_core::IoHandler;
use util::H256;
#[cfg(not(feature = "no-ui"))]
#[cfg(feature = "ui")]
mod signer {
use signer;
@@ -32,7 +32,7 @@ mod signer {
signer::handle(req)
}
}
#[cfg(feature = "no-ui")]
#[cfg(not(feature = "ui"))]
mod signer {
pub struct File {
pub content: String,