Upgrade dependencies whenever “easy” (#3556)

* Update all dependencies

* Upgrade dependencies whenever “easy”

“easy” means that there are no major changes required.

* Fix build and bump paste dependency to 0.1.6

* Remove dead code

* Re-add = dependency for futures-preview

* Add missing std features for runtime-io

* Remove git dependencies

as updated versions have been published to crates.io

* try to debug bug

* For sr-io, "std" should imply "no_oom" and "no_panic_handler".

Otherwise, rustc complains (correctly) about duplicate lang items.

* Add missing "runtime-io/std" features

* Fix compilation errors

* Prevent duplicate lang items

Rust does not allow duplicate lang items.  When compiled without the
`std` feature, `sr-io` defines two lang items.  Therefore, `sr-io`
compiled without `feature = "std"` must not be linked with `std`.

However, `pwasm-utils` and `wasmi-validation` both bring in `std` unless
compiled with `default-features = "false"`.  This caused a duplicate
lang item error.  Building both with `default-features = "false"`
prevents this error.  When building with `feature = "std"`, they should
both be built with the `std` feature, so this feature needs to be
explicitly depended on.

* Bump `impl_version`

* Make tests pass

Three tests used 1 less gas than they had previously.

* Try to un-break build

* Add a Cargo.lock file

* Revert offchain code

* Revert "Revert offchain code"

This reverts commit d216d08cc6ca0344614669c1d24cde3aa5c0d4e2.

* Don’t try to send a body with a GET request

without adding a Transfer-Encoding or Content-Length header.

This has always been wrong, but hyperium/hyper#1925 hid the bug until
hyper was upgraded to 0.12.35.

* Change some more GET requests to POST requests

* Fix excess line width and remove an `extern crate`

* Delete commented-out extern crate

Co-Authored-By: Sergei Pepyakin <sergei@parity.io>

* Fix regression in Cargo.toml files

dev-dependencies need `default-features = false`, too.

* Bump parity-wasm dependency

* Bump `futures-preview`

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Update Cargo.lock files

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Update core/service/src/chain_ops.rs

Co-Authored-By: Sergei Pepyakin <sergei@parity.io>
This commit is contained in:
DemiMarie-parity
2019-10-02 15:23:59 -04:00
committed by GitHub
parent f6bd58ac1f
commit 62b97a090d
121 changed files with 1307 additions and 6562 deletions
+5 -5
View File
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
serde = { version = "1.0", optional = true, features = ["derive"] }
serde = { version = "1.0.101", optional = true, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "1.0.6", default-features = false, features = ["derive"] }
srml-metadata = { path = "../metadata", default-features = false }
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
@@ -14,10 +14,10 @@ sr-primitives = { path = "../../core/sr-primitives", default-features = false }
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
inherents = { package = "substrate-inherents", path = "../../core/inherents", default-features = false }
srml-support-procedural = { package = "srml-support-procedural", path = "./procedural" }
paste = "0.1"
once_cell = { version = "0.1.6", default-features = false, optional = true }
bitmask = { version = "0.5", default-features = false }
impl-trait-for-tuples = "0.1.1"
paste = "0.1.6"
once_cell = { version = "0.2.4", default-features = false, optional = true }
bitmask = { version = "0.5.0", default-features = false }
impl-trait-for-tuples = "0.1.2"
[dev-dependencies]
pretty_assertions = "0.6.1"
+2 -2
View File
@@ -12,5 +12,5 @@ srml-support-procedural-tools = { package = "srml-support-procedural-tools", pat
sr-api-macros = { path = "../../../core/sr-api-macros" }
proc-macro2 = "0.4.27"
quote = { version = "0.6.12" }
syn = { version = "0.15.32", features = ["full"] }
quote = "0.6.12"
syn = { version = "0.15.44", features = ["full"] }
@@ -1087,7 +1087,9 @@ fn store_functions_to_metadata (
#[cfg(feature = "std")]
#[allow(non_upper_case_globals)]
static #cache_name: #scrate::once_cell::sync::OnceCell<#scrate::rstd::vec::Vec<u8>> = #scrate::once_cell::sync::OnceCell::INIT;
static #cache_name: #scrate::once_cell::sync::OnceCell<
#scrate::rstd::vec::Vec<u8>
> = #scrate::once_cell::sync::OnceCell::new();
#[cfg(feature = "std")]
impl<#traitinstance: #traittype, #instance #bound_instantiable> #scrate::metadata::DefaultByte
@@ -7,6 +7,6 @@ edition = "2018"
[dependencies]
srml-support-procedural-tools-derive = { package = "srml-support-procedural-tools-derive", path = "./derive" }
proc-macro2 = "0.4.27"
quote = { version = "0.6.12" }
syn = { version = "0.15.30", features = ["full"] }
proc-macro-crate = "0.1.3"
quote = "0.6.12"
syn = { version = "0.15.44", features = ["full"] }
proc-macro-crate = "0.1.4"
@@ -10,4 +10,4 @@ proc-macro = true
[dependencies]
proc-macro2 = "0.4.27"
quote = { version = "0.6.12", features = ["proc-macro"] }
syn = { version = "0.15.30", features = ["proc-macro" ,"full", "extra-traits", "parsing"] }
syn = { version = "0.15.44", features = ["proc-macro" ,"full", "extra-traits", "parsing"] }
+2 -2
View File
@@ -5,13 +5,13 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.101", default-features = false, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
runtime-io ={ package = "sr-io", path = "../../../core/sr-io", default-features = false }
support = { package = "srml-support", version = "2", path = "../", default-features = false }
inherents = { package = "substrate-inherents", path = "../../../core/inherents", default-features = false }
primitives = { package = "substrate-primitives", path = "../../../core/primitives", default-features = false }
trybuild = "1"
trybuild = "1.0.14"
pretty_assertions = "0.6.1"
[features]