added Clippy to client executable, added missing docs

This commit is contained in:
debris 2016-01-27 17:18:38 +01:00
parent 856c348e3e
commit b93bf662b9
3 changed files with 8 additions and 3 deletions

View File

@ -15,6 +15,7 @@ ctrlc = "1.0"
ethcore-util = { path = "../util" } ethcore-util = { path = "../util" }
ethcore-rpc = { path = "../rpc", optional = true } ethcore-rpc = { path = "../rpc", optional = true }
ethcore = { path = ".." } ethcore = { path = ".." }
clippy = "0.0.37"
[features] [features]
rpc = ["ethcore-rpc"] rpc = ["ethcore-rpc"]

View File

@ -1,5 +1,9 @@
//! Ethcore client application.
#![warn(missing_docs)]
#![feature(plugin)] #![feature(plugin)]
#![plugin(docopt_macros)] #![plugin(docopt_macros)]
#![plugin(clippy)]
extern crate docopt; extern crate docopt;
extern crate rustc_serialize; extern crate rustc_serialize;
extern crate ethcore_util as util; extern crate ethcore_util as util;
@ -34,7 +38,7 @@ Options:
-h --help Show this screen. -h --help Show this screen.
"); ");
fn setup_log(init: &String) { fn setup_log(init: &str) {
let mut builder = LogBuilder::new(); let mut builder = LogBuilder::new();
builder.filter(None, LogLevelFilter::Info); builder.filter(None, LogLevelFilter::Info);
@ -52,7 +56,7 @@ fn setup_log(init: &String) {
fn setup_rpc_server(client: Arc<Client>) { fn setup_rpc_server(client: Arc<Client>) {
use rpc::v1::*; use rpc::v1::*;
let mut server = HttpServer::new(1); let mut server = rpc::HttpServer::new(1);
server.add_delegate(Web3Client::new().to_delegate()); server.add_delegate(Web3Client::new().to_delegate());
server.add_delegate(EthClient::new(client.clone()).to_delegate()); server.add_delegate(EthClient::new(client.clone()).to_delegate());
server.add_delegate(EthFilterClient::new(client).to_delegate()); server.add_delegate(EthFilterClient::new(client).to_delegate());

View File

@ -3,7 +3,7 @@ description = "Ethcore jsonrpc"
name = "ethcore-rpc" name = "ethcore-rpc"
version = "0.1.0" version = "0.1.0"
license = "GPL-3.0" license = "GPL-3.0"
authors = ["Marek Kotewicz <marek.kotewicz@gmail.com"] authors = ["Ethcore <admin@ethcore.io"]
[lib] [lib]