offchain: Upgrade hyper to 0.13, which uses tokio 0.2 (#4860)

* service: Don't depend on tokio-executor

Seems to be a leftover dependency that's not used anymore.

* offchain: Upgrade hyper to 0.13, which uses tokio 0.2

* offchain: Adapt HTTP tests to Tokio 0.2

* network: Don't transitively include tokio 0.2 in WASM

1) We don't specifically depend on Tokio codec impls
2) Conflating features in Cargo means that enabling Tokio runtime
in the native environment will also do so in WASM, where it's
obviously not implemented and causes a compilation error.

* grafana-data-source: Pull hyper/tokio only in native environment
This commit is contained in:
Igor Matuszewski
2020-02-18 10:54:00 +01:00
committed by GitHub
parent 0049a93af0
commit aea2e9427b
8 changed files with 84 additions and 67 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ sp-runtime = { version = "2.0.0", path = "../../primitives/runtime" }
substrate-test-client = { version = "2.0.0", optional = true, path = "../../test-utils/client" }
substrate-test-runtime-client = { version = "2.0.0", optional = true, path = "../../test-utils/runtime/client" }
thiserror = "1"
unsigned-varint = { version = "0.3.0", features = ["codec"] }
unsigned-varint = { version = "0.3.0", features = ["futures-codec"] }
void = "1.0.2"
zeroize = "1.0.0"
yamux = "0.4.2"