UI feature
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user