From aa6db4e69dcc9fbc3ba51aa8c25d6456726703e2 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Fri, 6 May 2016 01:54:15 +0400 Subject: [PATCH 1/6] placing right versions --- Cargo.lock | 91 ++++++++++++++++++++++-------------------- Cargo.toml | 2 - ipc/codegen/Cargo.toml | 10 ++--- ipc/tests/Cargo.toml | 1 - json/Cargo.toml | 2 +- rpc/Cargo.toml | 2 +- 6 files changed, 54 insertions(+), 54 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0faab2258..8d083fdd2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,7 +2,6 @@ name = "parity" version = "1.2.0" dependencies = [ - "bincode 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", "clippy 0.0.64 (registry+https://github.com/rust-lang/crates.io-index)", "ctrlc 1.1.1 (git+https://github.com/tomusdrw/rust-ctrlc.git)", "daemonize 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -28,8 +27,7 @@ dependencies = [ "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", "semver 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -52,10 +50,10 @@ dependencies = [ [[package]] name = "aster" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "syntex_syntax 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex_syntax 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -70,17 +68,6 @@ dependencies = [ "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "bincode" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "byteorder 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", - "num 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "bitflags" version = "0.3.3" @@ -111,11 +98,6 @@ name = "bloomchain" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "byteorder" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - [[package]] name = "bytes" version = "0.3.0" @@ -290,11 +272,11 @@ dependencies = [ name = "ethcore-ipc-codegen" version = "1.2.0" dependencies = [ - "aster 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", - "quasi 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "quasi_codegen 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex_syntax 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", + "aster 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", + "quasi 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", + "quasi_codegen 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex_syntax 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -323,9 +305,9 @@ dependencies = [ "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", "transient-hashmap 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -388,9 +370,9 @@ dependencies = [ "ethcore-util 1.2.0", "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -579,7 +561,7 @@ version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -590,7 +572,7 @@ version = "2.0.3" source = "git+https://github.com/tomusdrw/jsonrpc-core.git#9d51f1b6679938846d93cbafdd052733c816d28b" dependencies = [ "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -904,20 +886,20 @@ dependencies = [ [[package]] name = "quasi" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "syntex_syntax 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex_syntax 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "quasi_codegen" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "aster 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex_syntax 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", + "aster 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex_syntax 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1050,14 +1032,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "serde_codegen" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "aster 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", - "quasi 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "quasi_codegen 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex_syntax 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", + "aster 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", + "quasi 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", + "quasi_codegen 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex_syntax 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1108,6 +1090,14 @@ dependencies = [ "syntex_syntax 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "syntex" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "syntex_syntax 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "syntex_syntax" version = "0.31.0" @@ -1121,6 +1111,19 @@ dependencies = [ "unicode-xid 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "syntex_syntax" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bitflags 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", + "term 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-xid 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "target_info" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index f6b328b29..7981c4b02 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,8 +34,6 @@ ethcore-webapp = { path = "webapp", optional = true } semver = "0.2" ethcore-ipc-nano = { path = "ipc/nano" } "ethcore-ipc" = { path = "ipc/rpc" } -bincode = "*" -serde = "0.7.0" json-ipc-server = { git = "https://github.com/NikVolf/json-ipc-server.git" } [dependencies.hyper] diff --git a/ipc/codegen/Cargo.toml b/ipc/codegen/Cargo.toml index 5f8dd089c..acd925c46 100644 --- a/ipc/codegen/Cargo.toml +++ b/ipc/codegen/Cargo.toml @@ -18,9 +18,9 @@ quasi_codegen = { version = "*", optional = true } syntex = { version = "*", optional = true } [dependencies] -aster = { version = "^0.15.0", default-features = false } +aster = { version = "0.16", default-features = false } clippy = { version = "^0.*", optional = true } -quasi = { version = "*", default-features = false } -quasi_macros = { version = "*", optional = true } -syntex = { version = "*", optional = true } -syntex_syntax = { version = "*", optional = true } +quasi = { version = "0.10", default-features = false } +quasi_macros = { version = "0.10", optional = true } +syntex = { version = "0.32", optional = true } +syntex_syntax = { version = "0.32", optional = true } diff --git a/ipc/tests/Cargo.toml b/ipc/tests/Cargo.toml index bde5b4c62..c3a0697c9 100644 --- a/ipc/tests/Cargo.toml +++ b/ipc/tests/Cargo.toml @@ -17,5 +17,4 @@ ethcore-util = { path = "../../util" } [build-dependencies] syntex = "*" -serde_codegen = "0.7.0" "ethcore-ipc-codegen" = { path = "../codegen" } diff --git a/json/Cargo.toml b/json/Cargo.toml index 48014189b..e6b914f4f 100644 --- a/json/Cargo.toml +++ b/json/Cargo.toml @@ -14,7 +14,7 @@ clippy = { version = "0.0.64", optional = true} [build-dependencies] serde_codegen = { version = "0.7.0", optional = true } -syntex = "0.31.0" +syntex = "0.32.0" [features] default = ["serde_codegen"] diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index 1c8117335..7f714b32d 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -27,7 +27,7 @@ json-ipc-server = { git = "https://github.com/NikVolf/json-ipc-server.git" } [build-dependencies] serde_codegen = { version = "0.7.0", optional = true } -syntex = "0.31.0" +syntex = "0.32.0" [features] default = ["serde_codegen"] From 2cb085db917086dc3a0d8214f355d6bf351d3d87 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Fri, 6 May 2016 02:25:58 +0400 Subject: [PATCH 2/6] fixing issues with syntax --- ipc/codegen/Cargo.toml | 4 +-- ipc/codegen/src/codegen.rs | 26 +++++++------- ipc/codegen/src/serialization.rs | 60 ++++++++++++++++---------------- ipc/nano/Cargo.toml | 2 +- ipc/tests/build.rs | 1 - rpc/Cargo.toml | 2 +- 6 files changed, 47 insertions(+), 48 deletions(-) diff --git a/ipc/codegen/Cargo.toml b/ipc/codegen/Cargo.toml index acd925c46..78ca6a7b4 100644 --- a/ipc/codegen/Cargo.toml +++ b/ipc/codegen/Cargo.toml @@ -14,8 +14,8 @@ nightly-testing = ["clippy"] with-syntex = ["quasi/with-syntex", "quasi_codegen", "quasi_codegen/with-syntex", "syntex", "syntex_syntax"] [build-dependencies] -quasi_codegen = { version = "*", optional = true } -syntex = { version = "*", optional = true } +quasi_codegen = { version = "0.10", optional = true } +syntex = { version = "^0.31", optional = true } [dependencies] aster = { version = "0.16", default-features = false } diff --git a/ipc/codegen/src/codegen.rs b/ipc/codegen/src/codegen.rs index 582aa9332..6f16994b6 100644 --- a/ipc/codegen/src/codegen.rs +++ b/ipc/codegen/src/codegen.rs @@ -197,14 +197,14 @@ fn implement_dispatch_arm_invoke_stmt( let mut tt = ::std::vec::Vec::new(); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::OpenDelim(::syntax::parse::token::Brace))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::ModSep)); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("ipc"), ::syntax::parse::token::ModName))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("ipc")))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::ModSep)); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("binary"), ::syntax::parse::token::ModName))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("binary")))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::ModSep)); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("serialize"), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("serialize")))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::OpenDelim(::syntax::parse::token::Paren))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::BinOp(::syntax::parse::token::And))); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("self"), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("self")))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Dot)); tt.extend(::quasi::ToTokens::to_tokens(&function_name, ext_cx).into_iter()); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::OpenDelim(::syntax::parse::token::Paren))); @@ -217,7 +217,7 @@ fn implement_dispatch_arm_invoke_stmt( tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::CloseDelim(::syntax::parse::token::Paren))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::CloseDelim(::syntax::parse::token::Paren))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Dot)); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("unwrap"), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("unwrap")))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::OpenDelim(::syntax::parse::token::Paren))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::CloseDelim(::syntax::parse::token::Paren))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::CloseDelim(::syntax::parse::token::Brace))); @@ -365,18 +365,18 @@ fn implement_client_method_body( { let _sp = ext_cx.call_site(); let mut tt = ::std::vec::Vec::new(); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("let"), ::syntax::parse::token::Plain))); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("payload"), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("let")))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("payload")))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Eq)); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("Request"), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("Request")))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::OpenDelim(::syntax::parse::token::Brace))); for arg in dispatch.input_arg_names.iter() { - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of(arg.as_str()), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of(arg.as_str())))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Colon)); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::BinOp(::syntax::parse::token::And))); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of(arg.as_str()), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of(arg.as_str())))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Comma)); } @@ -452,18 +452,18 @@ fn implement_client_method( { let _sp = ext_cx.call_site(); let mut tt = ::std::vec::Vec::new(); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("fn"), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("fn")))); tt.extend(::quasi::ToTokens::to_tokens(&method_name, ext_cx).into_iter()); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::OpenDelim(::syntax::parse::token::Paren))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::BinOp(::syntax::parse::token::And))); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("self"), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of("self")))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Comma)); for arg_idx in 0..dispatch.input_arg_names.len() { let arg_name = dispatch.input_arg_names[arg_idx].as_str(); let arg_ty = dispatch.input_arg_tys[arg_idx].clone(); - tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of(arg_name), ::syntax::parse::token::Plain))); + tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Ident(ext_cx.ident_of(arg_name)))); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Colon)); tt.extend(::quasi::ToTokens::to_tokens(&arg_ty, ext_cx).into_iter()); tt.push(::syntax::ast::TokenTree::Token(_sp, ::syntax::parse::token::Comma)); diff --git a/ipc/codegen/src/serialization.rs b/ipc/codegen/src/serialization.rs index 3f535aafc..6a9784790 100644 --- a/ipc/codegen/src/serialization.rs +++ b/ipc/codegen/src/serialization.rs @@ -372,47 +372,47 @@ fn fields_sequence( { let _sp = ext_cx.call_site(); let mut tt = ::std::vec::Vec::new(); - tt.push(Token(_sp, token::Ident(variant_ident.clone(), token::Plain))); + tt.push(Token(_sp, token::Ident(variant_ident.clone()))); tt.push(Token(_sp, token::OpenDelim(token::Paren))); for (idx, field) in fields.iter().enumerate() { if field.ident.is_some() { - tt.push(Token(_sp, token::Ident(field.ident.clone().unwrap(), token::Plain))); + tt.push(Token(_sp, token::Ident(field.ident.clone().unwrap()))); tt.push(Token(_sp, token::Colon)); } - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("try!"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("try!")))); tt.push(Token(_sp, token::OpenDelim(token::Paren))); - tt.push(Token( - _sp, - token::Ident( - ext_cx.ident_of(&replace_qualified(&::syntax::print::pprust::ty_to_string(&field.ty))), - token::Plain))); + tt.push( + Token( + _sp, + token::Ident(ext_cx.ident_of(&replace_qualified(&::syntax::print::pprust::ty_to_string(&field.ty)))) + )); tt.push(Token(_sp, token::ModSep)); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("from_bytes"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("from_bytes")))); tt.push(Token(_sp, token::OpenDelim(token::Paren))); tt.push(Token(_sp, token::BinOp(token::And))); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("buffer"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("buffer")))); tt.push(Token(_sp, token::OpenDelim(token::Bracket))); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("map"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("map")))); tt.push(Token(_sp, token::OpenDelim(token::Bracket))); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of(&format!("{}", idx)), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of(&format!("{}", idx))))); tt.push(Token(_sp, token::CloseDelim(token::Bracket))); tt.push(Token(_sp, token::DotDot)); if idx+1 != fields.len() { - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("map"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("map")))); tt.push(Token(_sp, token::OpenDelim(token::Bracket))); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of(&format!("{}", idx+1)), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of(&format!("{}", idx+1))))); tt.push(Token(_sp, token::CloseDelim(token::Bracket))); } tt.push(Token(_sp, token::CloseDelim(token::Bracket))); tt.push(Token(_sp, token::Comma)); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("length_stack"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("length_stack")))); tt.push(Token(_sp, token::CloseDelim(token::Paren))); tt.push(Token(_sp, token::CloseDelim(token::Paren))); @@ -439,53 +439,53 @@ fn named_fields_sequence( { let _sp = ext_cx.call_site(); let mut tt = ::std::vec::Vec::new(); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("let"), token::Plain))); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("result"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("let")))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("result")))); tt.push(Token(_sp, token::Eq)); tt.push(Token( _sp, token::Ident( - ext_cx.ident_of(&::syntax::print::pprust::ty_to_string(ty)), - token::Plain))); + ext_cx.ident_of(&::syntax::print::pprust::ty_to_string(ty)) + ))); tt.push(Token(_sp, token::OpenDelim(token::Brace))); for (idx, field) in fields.iter().enumerate() { - tt.push(Token(_sp, token::Ident(field.ident.clone().unwrap(), token::Plain))); + tt.push(Token(_sp, token::Ident(field.ident.clone().unwrap()))); tt.push(Token(_sp, token::Colon)); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("try!"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("try!")))); tt.push(Token(_sp, token::OpenDelim(token::Paren))); tt.push(Token( _sp, token::Ident( - ext_cx.ident_of(&replace_qualified(&::syntax::print::pprust::ty_to_string(&field.ty))), - token::Plain))); + ext_cx.ident_of(&replace_qualified(&::syntax::print::pprust::ty_to_string(&field.ty))) + ))); tt.push(Token(_sp, token::ModSep)); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("from_bytes"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("from_bytes")))); tt.push(Token(_sp, token::OpenDelim(token::Paren))); tt.push(Token(_sp, token::BinOp(token::And))); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("buffer"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("buffer")))); tt.push(Token(_sp, token::OpenDelim(token::Bracket))); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("map"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("map")))); tt.push(Token(_sp, token::OpenDelim(token::Bracket))); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of(&format!("{}", idx)), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of(&format!("{}", idx))))); tt.push(Token(_sp, token::CloseDelim(token::Bracket))); tt.push(Token(_sp, token::DotDot)); if idx + 1 != fields.len() { - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("map"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("map")))); tt.push(Token(_sp, token::OpenDelim(token::Bracket))); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of(&format!("{}", idx+1)), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of(&format!("{}", idx+1))))); tt.push(Token(_sp, token::CloseDelim(token::Bracket))); } tt.push(Token(_sp, token::CloseDelim(token::Bracket))); tt.push(Token(_sp, token::Comma)); - tt.push(Token(_sp, token::Ident(ext_cx.ident_of("length_stack"), token::Plain))); + tt.push(Token(_sp, token::Ident(ext_cx.ident_of("length_stack")))); tt.push(Token(_sp, token::CloseDelim(token::Paren))); diff --git a/ipc/nano/Cargo.toml b/ipc/nano/Cargo.toml index fb68adeb7..32f0b2b26 100644 --- a/ipc/nano/Cargo.toml +++ b/ipc/nano/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0" [features] [dependencies] -jsonrpc-core = "2.0" +jsonrpc-core = { git = "https://github.com/tomusdrw/jsonrpc-core.git" } "ethcore-ipc" = { path = "../rpc" } nanomsg = { git = "https://github.com/ethcore/nanomsg.rs.git" } log = "0.3" diff --git a/ipc/tests/build.rs b/ipc/tests/build.rs index 3600ed7b9..da5d939f2 100644 --- a/ipc/tests/build.rs +++ b/ipc/tests/build.rs @@ -16,7 +16,6 @@ extern crate syntex; extern crate ethcore_ipc_codegen as codegen; -extern crate serde_codegen; use std::env; use std::path::Path; diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index 7f714b32d..5c2b19a52 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -27,7 +27,7 @@ json-ipc-server = { git = "https://github.com/NikVolf/json-ipc-server.git" } [build-dependencies] serde_codegen = { version = "0.7.0", optional = true } -syntex = "0.32.0" +syntex = "^0.31.0" [features] default = ["serde_codegen"] From c16a46dca7400d0bd790c0edbdfb86c1ec9deaf5 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Fri, 6 May 2016 14:58:37 +0400 Subject: [PATCH 3/6] all to ethcore --- Cargo.lock | 46 +++++++++++++++++++++++++++++++----------- Cargo.toml | 2 +- ipc/nano/Cargo.toml | 2 +- rpc/Cargo.toml | 6 +++--- rpc/rpctest/Cargo.toml | 2 +- webapp/Cargo.toml | 4 ++-- 6 files changed, 42 insertions(+), 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8d083fdd2..485b849d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3,7 +3,7 @@ name = "parity" version = "1.2.0" dependencies = [ "clippy 0.0.64 (registry+https://github.com/rust-lang/crates.io-index)", - "ctrlc 1.1.1 (git+https://github.com/tomusdrw/rust-ctrlc.git)", + "ctrlc 1.1.1 (git+https://github.com/ethcore/rust-ctrlc.git)", "daemonize 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "docopt 0.6.80 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -160,7 +160,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "ctrlc" version = "1.1.1" -source = "git+https://github.com/tomusdrw/rust-ctrlc.git#f4927770f89eca80ec250911eea3adcbf579ac48" +source = "git+https://github.com/ethcore/rust-ctrlc.git#f4927770f89eca80ec250911eea3adcbf579ac48" dependencies = [ "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", @@ -284,7 +284,7 @@ name = "ethcore-ipc-nano" version = "1.2.0" dependencies = [ "ethcore-ipc 1.2.0", - "jsonrpc-core 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", + "jsonrpc-core 2.0.3 (git+https://github.com/ethcore/jsonrpc-core.git)", "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "nanomsg 0.5.0 (git+https://github.com/ethcore/nanomsg.rs.git)", ] @@ -299,15 +299,15 @@ dependencies = [ "ethcore-util 1.2.0", "ethminer 1.2.0", "ethsync 1.2.0", - "json-ipc-server 0.1.0 (git+https://github.com/NikVolf/json-ipc-server.git)", - "jsonrpc-core 2.0.3 (git+https://github.com/tomusdrw/jsonrpc-core.git)", - "jsonrpc-http-server 5.1.0 (git+https://github.com/tomusdrw/jsonrpc-http-server.git)", + "json-ipc-server 0.1.0 (git+https://github.com/ethcore/json-ipc-server.git)", + "jsonrpc-core 2.0.3 (git+https://github.com/ethcore/jsonrpc-core.git)", + "jsonrpc-http-server 5.1.0 (git+https://github.com/ethcore/jsonrpc-http-server.git)", "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", "transient-hashmap 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -355,8 +355,8 @@ dependencies = [ "ethcore-rpc 1.2.0", "ethcore-util 1.2.0", "hyper 0.9.2 (git+https://github.com/hyperium/hyper?branch=mio)", - "jsonrpc-core 2.0.3 (git+https://github.com/tomusdrw/jsonrpc-core.git)", - "jsonrpc-http-server 5.1.0 (git+https://github.com/tomusdrw/jsonrpc-http-server.git)", + "jsonrpc-core 2.0.3 (git+https://github.com/ethcore/jsonrpc-core.git)", + "jsonrpc-http-server 5.1.0 (git+https://github.com/ethcore/jsonrpc-http-server.git)", "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "parity-status 0.3.6 (git+https://github.com/ethcore/parity-status.git)", "parity-webapp 0.1.0 (git+https://github.com/ethcore/parity-webapp.git)", @@ -547,6 +547,17 @@ dependencies = [ "slab 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "json-ipc-server" +version = "0.1.0" +source = "git+https://github.com/ethcore/json-ipc-server.git#c44572fa19c1077e59298df3c3c6533c7cdae11e" +dependencies = [ + "bytes 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "jsonrpc-core 2.0.3 (git+https://github.com/ethcore/jsonrpc-core.git)", + "mio 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "slab 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "json-tests" version = "0.1.0" @@ -569,7 +580,7 @@ dependencies = [ [[package]] name = "jsonrpc-core" version = "2.0.3" -source = "git+https://github.com/tomusdrw/jsonrpc-core.git#9d51f1b6679938846d93cbafdd052733c816d28b" +source = "git+https://github.com/ethcore/jsonrpc-core.git#195358904e256e7f130fd151edba42b1bc214354" dependencies = [ "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -577,13 +588,24 @@ dependencies = [ "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "jsonrpc-core" +version = "2.0.3" +source = "git+https://github.com/tomusdrw/jsonrpc-core.git#ede5fe06d9a96ad245b082c00bc49088d038e5f3" +dependencies = [ + "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "jsonrpc-http-server" version = "5.1.0" -source = "git+https://github.com/tomusdrw/jsonrpc-http-server.git#fafd6410284710b7e662fe7d76249cc496451f27" +source = "git+https://github.com/ethcore/jsonrpc-http-server.git#b32815330c191aff06a6e017ba00c10e872bb4f6" dependencies = [ "hyper 0.9.2 (git+https://github.com/hyperium/hyper?branch=mio)", - "jsonrpc-core 2.0.3 (git+https://github.com/tomusdrw/jsonrpc-core.git)", + "jsonrpc-core 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/Cargo.toml b/Cargo.toml index 7981c4b02..fc5798fa1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ env_logger = "0.3" rustc-serialize = "0.3" docopt = "0.6" time = "0.1" -ctrlc = { git = "https://github.com/tomusdrw/rust-ctrlc.git" } +ctrlc = { git = "https://github.com/ethcore/rust-ctrlc.git" } fdlimit = { path = "util/fdlimit" } daemonize = "0.2" num_cpus = "0.2" diff --git a/ipc/nano/Cargo.toml b/ipc/nano/Cargo.toml index 32f0b2b26..4fd8e4e34 100644 --- a/ipc/nano/Cargo.toml +++ b/ipc/nano/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0" [features] [dependencies] -jsonrpc-core = { git = "https://github.com/tomusdrw/jsonrpc-core.git" } +jsonrpc-core = { git = "https://github.com/ethcore/jsonrpc-core.git" } "ethcore-ipc" = { path = "../rpc" } nanomsg = { git = "https://github.com/ethcore/nanomsg.rs.git" } log = "0.3" diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index 5c2b19a52..cb2f970fa 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -12,8 +12,8 @@ build = "build.rs" log = "0.3" serde = "0.7.0" serde_json = "0.7.0" -jsonrpc-core = { git = "https://github.com/tomusdrw/jsonrpc-core.git" } -jsonrpc-http-server = { git = "https://github.com/tomusdrw/jsonrpc-http-server.git", version = "5.1.0" } +jsonrpc-core = { git = "https://github.com/ethcore/jsonrpc-core.git" } +jsonrpc-http-server = { git = "https://github.com/ethcore/jsonrpc-http-server.git" } ethcore-util = { path = "../util" } ethcore = { path = "../ethcore" } ethash = { path = "../ethash" } @@ -23,7 +23,7 @@ rustc-serialize = "0.3" transient-hashmap = "0.1" serde_macros = { version = "0.7.0", optional = true } clippy = { version = "0.0.64", optional = true} -json-ipc-server = { git = "https://github.com/NikVolf/json-ipc-server.git" } +json-ipc-server = { git = "https://github.com/ethcore/json-ipc-server.git" } [build-dependencies] serde_codegen = { version = "0.7.0", optional = true } diff --git a/rpc/rpctest/Cargo.toml b/rpc/rpctest/Cargo.toml index f3b8b5053..da10561d5 100644 --- a/rpc/rpctest/Cargo.toml +++ b/rpc/rpctest/Cargo.toml @@ -6,7 +6,7 @@ license = "GPL-3.0" authors = ["Ethcore "] [dependencies] -ctrlc = { git = "https://github.com/tomusdrw/rust-ctrlc.git" } +ctrlc = { git = "https://github.com/ethcore/rust-ctrlc.git" } docopt = "0.6" rustc-serialize = "0.3" ethcore = { path = "../../ethcore" } diff --git a/webapp/Cargo.toml b/webapp/Cargo.toml index 2da9b96f1..4bfe5400f 100644 --- a/webapp/Cargo.toml +++ b/webapp/Cargo.toml @@ -9,8 +9,8 @@ authors = ["Ethcore Date: Fri, 6 May 2016 16:40:24 +0400 Subject: [PATCH 4/6] finalizing deps rearrange --- Cargo.lock | 72 ++++++--------------------------------------- Cargo.toml | 2 +- ipc/nano/Cargo.toml | 2 +- rpc/Cargo.toml | 4 +-- webapp/Cargo.toml | 2 +- 5 files changed, 14 insertions(+), 68 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 485b849d8..58809ed45 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,7 +19,7 @@ dependencies = [ "ethsync 1.2.0", "fdlimit 0.1.0", "hyper 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", - "json-ipc-server 0.1.0 (git+https://github.com/NikVolf/json-ipc-server.git)", + "json-ipc-server 0.1.0 (git+https://github.com/ethcore/json-ipc-server.git)", "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "num_cpus 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "number_prefix 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -284,7 +284,7 @@ name = "ethcore-ipc-nano" version = "1.2.0" dependencies = [ "ethcore-ipc 1.2.0", - "jsonrpc-core 2.0.3 (git+https://github.com/ethcore/jsonrpc-core.git)", + "jsonrpc-core 2.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "nanomsg 0.5.0 (git+https://github.com/ethcore/nanomsg.rs.git)", ] @@ -300,14 +300,14 @@ dependencies = [ "ethminer 1.2.0", "ethsync 1.2.0", "json-ipc-server 0.1.0 (git+https://github.com/ethcore/json-ipc-server.git)", - "jsonrpc-core 2.0.3 (git+https://github.com/ethcore/jsonrpc-core.git)", + "jsonrpc-core 2.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-http-server 5.1.0 (git+https://github.com/ethcore/jsonrpc-http-server.git)", "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syntex 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", "transient-hashmap 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -355,7 +355,7 @@ dependencies = [ "ethcore-rpc 1.2.0", "ethcore-util 1.2.0", "hyper 0.9.2 (git+https://github.com/hyperium/hyper?branch=mio)", - "jsonrpc-core 2.0.3 (git+https://github.com/ethcore/jsonrpc-core.git)", + "jsonrpc-core 2.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-http-server 5.1.0 (git+https://github.com/ethcore/jsonrpc-http-server.git)", "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "parity-status 0.3.6 (git+https://github.com/ethcore/parity-status.git)", @@ -539,21 +539,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "json-ipc-server" version = "0.1.0" -source = "git+https://github.com/NikVolf/json-ipc-server.git#6cd82ca91d3938ba1cbb404adc7dd1478605e493" +source = "git+https://github.com/ethcore/json-ipc-server.git#fdcba83d00b127c7419fe21406a5b81998f686eb" dependencies = [ "bytes 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "jsonrpc-core 2.0.3 (git+https://github.com/tomusdrw/jsonrpc-core.git)", - "mio 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", - "slab 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "json-ipc-server" -version = "0.1.0" -source = "git+https://github.com/ethcore/json-ipc-server.git#c44572fa19c1077e59298df3c3c6533c7cdae11e" -dependencies = [ - "bytes 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "jsonrpc-core 2.0.3 (git+https://github.com/ethcore/jsonrpc-core.git)", + "jsonrpc-core 2.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "slab 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -568,30 +557,8 @@ dependencies = [ [[package]] name = "jsonrpc-core" -version = "2.0.2" +version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "jsonrpc-core" -version = "2.0.3" -source = "git+https://github.com/ethcore/jsonrpc-core.git#195358904e256e7f130fd151edba42b1bc214354" -dependencies = [ - "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "jsonrpc-core" -version = "2.0.3" -source = "git+https://github.com/tomusdrw/jsonrpc-core.git#ede5fe06d9a96ad245b082c00bc49088d038e5f3" dependencies = [ "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_codegen 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -605,7 +572,7 @@ version = "5.1.0" source = "git+https://github.com/ethcore/jsonrpc-http-server.git#b32815330c191aff06a6e017ba00c10e872bb4f6" dependencies = [ "hyper 0.9.2 (git+https://github.com/hyperium/hyper?branch=mio)", - "jsonrpc-core 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", + "jsonrpc-core 2.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1104,14 +1071,6 @@ name = "strsim" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "syntex" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "syntex_syntax 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "syntex" version = "0.32.0" @@ -1120,19 +1079,6 @@ dependencies = [ "syntex_syntax 0.32.0 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "syntex_syntax" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", - "term 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-xid 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "syntex_syntax" version = "0.32.0" diff --git a/Cargo.toml b/Cargo.toml index fc5798fa1..af97737e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ ethcore-webapp = { path = "webapp", optional = true } semver = "0.2" ethcore-ipc-nano = { path = "ipc/nano" } "ethcore-ipc" = { path = "ipc/rpc" } -json-ipc-server = { git = "https://github.com/NikVolf/json-ipc-server.git" } +json-ipc-server = { git = "https://github.com/ethcore/json-ipc-server.git" } [dependencies.hyper] version = "0.8" diff --git a/ipc/nano/Cargo.toml b/ipc/nano/Cargo.toml index 4fd8e4e34..fb68adeb7 100644 --- a/ipc/nano/Cargo.toml +++ b/ipc/nano/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0" [features] [dependencies] -jsonrpc-core = { git = "https://github.com/ethcore/jsonrpc-core.git" } +jsonrpc-core = "2.0" "ethcore-ipc" = { path = "../rpc" } nanomsg = { git = "https://github.com/ethcore/nanomsg.rs.git" } log = "0.3" diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index cb2f970fa..326634ab2 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -12,7 +12,7 @@ build = "build.rs" log = "0.3" serde = "0.7.0" serde_json = "0.7.0" -jsonrpc-core = { git = "https://github.com/ethcore/jsonrpc-core.git" } +jsonrpc-core = "2.0" jsonrpc-http-server = { git = "https://github.com/ethcore/jsonrpc-http-server.git" } ethcore-util = { path = "../util" } ethcore = { path = "../ethcore" } @@ -27,7 +27,7 @@ json-ipc-server = { git = "https://github.com/ethcore/json-ipc-server.git" } [build-dependencies] serde_codegen = { version = "0.7.0", optional = true } -syntex = "^0.31.0" +syntex = "^0.32.0" [features] default = ["serde_codegen"] diff --git a/webapp/Cargo.toml b/webapp/Cargo.toml index 4bfe5400f..ccc0d189d 100644 --- a/webapp/Cargo.toml +++ b/webapp/Cargo.toml @@ -9,7 +9,7 @@ authors = ["Ethcore Date: Fri, 6 May 2016 16:43:29 +0400 Subject: [PATCH 5/6] removing unused externs --- parity/main.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/parity/main.rs b/parity/main.rs index c143f0b05..ded07505c 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -40,8 +40,6 @@ extern crate rpassword; extern crate semver; extern crate ethcore_ipc as ipc; extern crate ethcore_ipc_nano as nanoipc; -extern crate serde; -extern crate bincode; #[macro_use] extern crate hyper; // for price_info.rs extern crate json_ipc_server as jsonipc; From 2e76def29561885f95cbac27fbd99eecc5a61840 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Sat, 7 May 2016 11:22:20 +0400 Subject: [PATCH 6/6] update hyper branch mio --- Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0faab2258..7494dd6ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -372,7 +372,7 @@ dependencies = [ "clippy 0.0.64 (registry+https://github.com/rust-lang/crates.io-index)", "ethcore-rpc 1.2.0", "ethcore-util 1.2.0", - "hyper 0.9.2 (git+https://github.com/hyperium/hyper?branch=mio)", + "hyper 0.9.3 (git+https://github.com/hyperium/hyper?branch=mio)", "jsonrpc-core 2.0.3 (git+https://github.com/tomusdrw/jsonrpc-core.git)", "jsonrpc-http-server 5.1.0 (git+https://github.com/tomusdrw/jsonrpc-http-server.git)", "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -507,8 +507,8 @@ dependencies = [ [[package]] name = "hyper" -version = "0.9.2" -source = "git+https://github.com/hyperium/hyper?branch=mio#11930b61857e15830d558303ba5e77f6c02d06fd" +version = "0.9.3" +source = "git+https://github.com/hyperium/hyper?branch=mio#dbb4cf160ebf242f7f0459d547c40e9e6877ccf4" dependencies = [ "cookie 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "httparse 1.1.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -600,7 +600,7 @@ name = "jsonrpc-http-server" version = "5.1.0" source = "git+https://github.com/tomusdrw/jsonrpc-http-server.git#fafd6410284710b7e662fe7d76249cc496451f27" dependencies = [ - "hyper 0.9.2 (git+https://github.com/hyperium/hyper?branch=mio)", + "hyper 0.9.3 (git+https://github.com/hyperium/hyper?branch=mio)", "jsonrpc-core 2.0.3 (git+https://github.com/tomusdrw/jsonrpc-core.git)", "unicase 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", ]