Minor fixes for Android compilation (#5209)

* Minor fixes for Android

* Update parity-multiaddr

* Bump in service Cargo.toml too
This commit is contained in:
Pierre Krieger
2020-03-10 20:54:58 +01:00
committed by GitHub
parent 1b4dcd1f23
commit f21680209f
5 changed files with 94 additions and 87 deletions
+90 -83
View File
@@ -212,7 +212,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ce6977f57fa68da77ffe5542950d47e9c23d65f5bc7cb0a9f8700996913eec7" checksum = "6ce6977f57fa68da77ffe5542950d47e9c23d65f5bc7cb0a9f8700996913eec7"
dependencies = [ dependencies = [
"futures 0.3.4", "futures 0.3.4",
"rustls", "rustls 0.16.0",
"webpki", "webpki",
"webpki-roots 0.17.0", "webpki-roots 0.17.0",
] ]
@@ -422,12 +422,6 @@ dependencies = [
"slab", "slab",
] ]
[[package]]
name = "bs58"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c95ee6bba9d950218b6cc910cf62bc9e0a171d0f4537e3627b0f54d08549b188"
[[package]] [[package]]
name = "bs58" name = "bs58"
version = "0.3.0" version = "0.3.0"
@@ -701,7 +695,17 @@ version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25b9e03f145fd4f2bf705e07b900cd41fc636598fe5dc452fd0db1441c3f496d" checksum = "25b9e03f145fd4f2bf705e07b900cd41fc636598fe5dc452fd0db1441c3f496d"
dependencies = [ dependencies = [
"core-foundation-sys", "core-foundation-sys 0.6.2",
"libc",
]
[[package]]
name = "core-foundation"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171"
dependencies = [
"core-foundation-sys 0.7.0",
"libc", "libc",
] ]
@@ -711,6 +715,12 @@ version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7ca8a5221364ef15ce201e8ed2f609fc312682a8f4e0e3d4aa5879764e0fa3b" checksum = "e7ca8a5221364ef15ce201e8ed2f609fc312682a8f4e0e3d4aa5879764e0fa3b"
[[package]]
name = "core-foundation-sys"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac"
[[package]] [[package]]
name = "cranelift-bforest" name = "cranelift-bforest"
version = "0.59.0" version = "0.59.0"
@@ -2202,15 +2212,16 @@ dependencies = [
[[package]] [[package]]
name = "hyper-rustls" name = "hyper-rustls"
version = "0.19.1" version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6ea6215c7314d450ee45970ab8b3851ab447a0e6bafdd19e31b20a42dbb7faf" checksum = "ac965ea399ec3a25ac7d13b8affd4b8f39325cca00858ddf5eb29b79e6b14b08"
dependencies = [ dependencies = [
"bytes 0.5.4", "bytes 0.5.4",
"ct-logs", "ct-logs",
"futures-util", "futures-util",
"hyper 0.13.2", "hyper 0.13.2",
"rustls", "log 0.4.8",
"rustls 0.17.0",
"rustls-native-certs", "rustls-native-certs",
"tokio 0.2.12", "tokio 0.2.12",
"tokio-rustls", "tokio-rustls",
@@ -2643,8 +2654,8 @@ dependencies = [
"libp2p-wasm-ext", "libp2p-wasm-ext",
"libp2p-websocket", "libp2p-websocket",
"libp2p-yamux", "libp2p-yamux",
"parity-multiaddr 0.7.3", "parity-multiaddr",
"parity-multihash 0.2.3", "parity-multihash",
"parking_lot 0.10.0", "parking_lot 0.10.0",
"pin-project", "pin-project",
"smallvec 1.2.0", "smallvec 1.2.0",
@@ -2658,7 +2669,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b874594c4b29de1a29f27871feba8e6cd13aa54a8a1e8f8c7cf3dfac5ca287c" checksum = "3b874594c4b29de1a29f27871feba8e6cd13aa54a8a1e8f8c7cf3dfac5ca287c"
dependencies = [ dependencies = [
"asn1_der", "asn1_der",
"bs58 0.3.0", "bs58",
"ed25519-dalek", "ed25519-dalek",
"fnv", "fnv",
"futures 0.3.4", "futures 0.3.4",
@@ -2667,8 +2678,8 @@ dependencies = [
"libsecp256k1", "libsecp256k1",
"log 0.4.8", "log 0.4.8",
"multistream-select", "multistream-select",
"parity-multiaddr 0.7.3", "parity-multiaddr",
"parity-multihash 0.2.3", "parity-multihash",
"parking_lot 0.10.0", "parking_lot 0.10.0",
"pin-project", "pin-project",
"prost", "prost",
@@ -2679,7 +2690,7 @@ dependencies = [
"sha2", "sha2",
"smallvec 1.2.0", "smallvec 1.2.0",
"thiserror", "thiserror",
"unsigned-varint 0.3.1", "unsigned-varint",
"void", "void",
"zeroize 1.1.0", "zeroize 1.1.0",
] ]
@@ -2754,7 +2765,7 @@ dependencies = [
"rand 0.7.3", "rand 0.7.3",
"sha2", "sha2",
"smallvec 1.2.0", "smallvec 1.2.0",
"unsigned-varint 0.3.1", "unsigned-varint",
"wasm-timer", "wasm-timer",
] ]
@@ -2789,14 +2800,14 @@ dependencies = [
"libp2p-core", "libp2p-core",
"libp2p-swarm", "libp2p-swarm",
"log 0.4.8", "log 0.4.8",
"parity-multihash 0.2.3", "parity-multihash",
"prost", "prost",
"prost-build", "prost-build",
"rand 0.7.3", "rand 0.7.3",
"sha2", "sha2",
"smallvec 1.2.0", "smallvec 1.2.0",
"uint", "uint",
"unsigned-varint 0.3.1", "unsigned-varint",
"void", "void",
"wasm-timer", "wasm-timer",
] ]
@@ -2836,7 +2847,7 @@ dependencies = [
"libp2p-core", "libp2p-core",
"log 0.4.8", "log 0.4.8",
"parking_lot 0.10.0", "parking_lot 0.10.0",
"unsigned-varint 0.3.1", "unsigned-varint",
] ]
[[package]] [[package]]
@@ -2889,7 +2900,7 @@ dependencies = [
"prost", "prost",
"prost-build", "prost-build",
"rw-stream-sink", "rw-stream-sink",
"unsigned-varint 0.3.1", "unsigned-varint",
"void", "void",
] ]
@@ -3005,7 +3016,7 @@ dependencies = [
"libp2p-core", "libp2p-core",
"log 0.4.8", "log 0.4.8",
"quicksink", "quicksink",
"rustls", "rustls 0.16.0",
"rw-stream-sink", "rw-stream-sink",
"soketto", "soketto",
"url 2.1.1", "url 2.1.1",
@@ -3278,7 +3289,7 @@ dependencies = [
"log 0.4.8", "log 0.4.8",
"smallvec 1.2.0", "smallvec 1.2.0",
"tokio-io", "tokio-io",
"unsigned-varint 0.3.1", "unsigned-varint",
] ]
[[package]] [[package]]
@@ -3303,8 +3314,8 @@ dependencies = [
"openssl-probe", "openssl-probe",
"openssl-sys", "openssl-sys",
"schannel", "schannel",
"security-framework", "security-framework 0.3.4",
"security-framework-sys", "security-framework-sys 0.3.3",
"tempfile", "tempfile",
] ]
@@ -4567,24 +4578,6 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c276d76c5333b8c2579e02d49a06733a55b8282d2d9b13e8d53b6406bd7e30a" checksum = "0c276d76c5333b8c2579e02d49a06733a55b8282d2d9b13e8d53b6406bd7e30a"
[[package]]
name = "parity-multiaddr"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "045b3c7af871285146300da35b1932bb6e4639b66c7c98e85d06a32cbc4e8fa7"
dependencies = [
"arrayref",
"bs58 0.2.5",
"byteorder 1.3.4",
"bytes 0.4.12",
"data-encoding",
"parity-multihash 0.1.3",
"percent-encoding 1.0.1",
"serde",
"unsigned-varint 0.2.3",
"url 1.7.2",
]
[[package]] [[package]]
name = "parity-multiaddr" name = "parity-multiaddr"
version = "0.7.3" version = "0.7.3"
@@ -4592,32 +4585,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f77055f9e81921a8cc7bebeb6cded3d128931d51f1e3dd6251f0770a6d431477" checksum = "f77055f9e81921a8cc7bebeb6cded3d128931d51f1e3dd6251f0770a6d431477"
dependencies = [ dependencies = [
"arrayref", "arrayref",
"bs58 0.3.0", "bs58",
"byteorder 1.3.4", "byteorder 1.3.4",
"data-encoding", "data-encoding",
"parity-multihash 0.2.3", "parity-multihash",
"percent-encoding 2.1.0", "percent-encoding 2.1.0",
"serde", "serde",
"static_assertions", "static_assertions",
"unsigned-varint 0.3.1", "unsigned-varint",
"url 2.1.1", "url 2.1.1",
] ]
[[package]]
name = "parity-multihash"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3a17dc27848fd99e4f87eb0f8c9baba6ede0a6d555400c850ca45254ef4ce3"
dependencies = [
"blake2",
"bytes 0.4.12",
"rand 0.6.5",
"sha-1",
"sha2",
"sha3",
"unsigned-varint 0.2.3",
]
[[package]] [[package]]
name = "parity-multihash" name = "parity-multihash"
version = "0.2.3" version = "0.2.3"
@@ -4630,7 +4608,7 @@ dependencies = [
"sha-1", "sha-1",
"sha2", "sha2",
"sha3", "sha3",
"unsigned-varint 0.3.1", "unsigned-varint",
] ]
[[package]] [[package]]
@@ -5505,15 +5483,28 @@ dependencies = [
] ]
[[package]] [[package]]
name = "rustls-native-certs" name = "rustls"
version = "0.1.0" version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51ffebdbb48c14f84eba0b715197d673aff1dd22cc1007ca647e28483bbcc307" checksum = "c0d4a31f5d68413404705d6982529b0e11a9aacd4839d1d6222ee3b8cb4015e1"
dependencies = [
"base64 0.11.0",
"log 0.4.8",
"ring",
"sct",
"webpki",
]
[[package]]
name = "rustls-native-certs"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75ffeb84a6bd9d014713119542ce415db3a3e4748f0bfce1e1416cd224a23a5"
dependencies = [ dependencies = [
"openssl-probe", "openssl-probe",
"rustls", "rustls 0.17.0",
"schannel", "schannel",
"security-framework", "security-framework 0.4.1",
] ]
[[package]] [[package]]
@@ -6234,7 +6225,7 @@ dependencies = [
"substrate-test-runtime-client", "substrate-test-runtime-client",
"tempfile", "tempfile",
"thiserror", "thiserror",
"unsigned-varint 0.3.1", "unsigned-varint",
"void", "void",
"wasm-timer", "wasm-timer",
"zeroize 1.1.0", "zeroize 1.1.0",
@@ -6421,7 +6412,7 @@ dependencies = [
"futures-timer 3.0.2", "futures-timer 3.0.2",
"lazy_static", "lazy_static",
"log 0.4.8", "log 0.4.8",
"parity-multiaddr 0.5.0", "parity-multiaddr",
"parity-scale-codec", "parity-scale-codec",
"parity-util-mem", "parity-util-mem",
"parking_lot 0.10.0", "parking_lot 0.10.0",
@@ -6653,10 +6644,22 @@ version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ef2429d7cefe5fd28bd1d2ed41c944547d4ff84776f5935b456da44593a16df" checksum = "8ef2429d7cefe5fd28bd1d2ed41c944547d4ff84776f5935b456da44593a16df"
dependencies = [ dependencies = [
"core-foundation", "core-foundation 0.6.4",
"core-foundation-sys", "core-foundation-sys 0.6.2",
"libc", "libc",
"security-framework-sys", "security-framework-sys 0.3.3",
]
[[package]]
name = "security-framework"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97bbedbe81904398b6ebb054b3e912f99d55807125790f3198ac990d98def5b0"
dependencies = [
"bitflags",
"core-foundation 0.7.0",
"core-foundation-sys 0.7.0",
"security-framework-sys 0.4.1",
] ]
[[package]] [[package]]
@@ -6665,7 +6668,17 @@ version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e31493fc37615debb8c5090a7aeb4a9730bc61e77ab10b9af59f1a202284f895" checksum = "e31493fc37615debb8c5090a7aeb4a9730bc61e77ab10b9af59f1a202284f895"
dependencies = [ dependencies = [
"core-foundation-sys", "core-foundation-sys 0.6.2",
]
[[package]]
name = "security-framework-sys"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06fd2f23e31ef68dd2328cc383bd493142e46107a3a0e24f7d734e3f3b80fe4c"
dependencies = [
"core-foundation-sys 0.7.0",
"libc",
] ]
[[package]] [[package]]
@@ -8207,12 +8220,12 @@ dependencies = [
[[package]] [[package]]
name = "tokio-rustls" name = "tokio-rustls"
version = "0.12.2" version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "141afec0978abae6573065a48882c6bae44c5cc61db9b511ac4abf6a09bfd9cc" checksum = "4adb8b3e5f86b707f1b54e7c15b6de52617a823608ccda98a15d3a24222f265a"
dependencies = [ dependencies = [
"futures-core", "futures-core",
"rustls", "rustls 0.17.0",
"tokio 0.2.12", "tokio 0.2.12",
"webpki", "webpki",
] ]
@@ -8562,12 +8575,6 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" checksum = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c"
[[package]]
name = "unsigned-varint"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7f0023a96687fe169081e8adce3f65e3874426b7886e9234d490af2dc077959"
[[package]] [[package]]
name = "unsigned-varint" name = "unsigned-varint"
version = "0.3.1" version = "0.3.1"
@@ -18,5 +18,5 @@ log = "0.4.8"
sp-core = { version = "2.0.0-alpha.2", path = "../../../primitives/core" } sp-core = { version = "2.0.0-alpha.2", path = "../../../primitives/core" }
sp-api = { version = "2.0.0-alpha.2", path = "../../../primitives/api" } sp-api = { version = "2.0.0-alpha.2", path = "../../../primitives/api" }
sp-runtime = { version = "2.0.0-alpha.2", path = "../../../primitives/runtime" } sp-runtime = { version = "2.0.0-alpha.2", path = "../../../primitives/runtime" }
sc-service = { version = "0.8.0-alpha.2", path = "../../../client/service" } sc-service = { version = "0.8.0-alpha.2", default-features = false, path = "../../../client/service" }
sp-blockchain = { version = "2.0.0-alpha.2", path = "../../../primitives/blockchain" } sp-blockchain = { version = "2.0.0-alpha.2", path = "../../../primitives/blockchain" }
+1 -1
View File
@@ -29,7 +29,7 @@ sc-keystore = { version = "2.0.0-alpha.2", path = "../keystore" }
[target.'cfg(not(target_os = "unknown"))'.dependencies] [target.'cfg(not(target_os = "unknown"))'.dependencies]
hyper = "0.13.2" hyper = "0.13.2"
hyper-rustls = "0.19" hyper-rustls = "0.20"
[dev-dependencies] [dev-dependencies]
env_logger = "0.7.0" env_logger = "0.7.0"
+1 -1
View File
@@ -55,7 +55,7 @@ sc-rpc-server = { version = "2.0.0-alpha.2", path = "../rpc-servers" }
sc-rpc = { version = "2.0.0-alpha.2", path = "../rpc" } sc-rpc = { version = "2.0.0-alpha.2", path = "../rpc" }
sc-telemetry = { version = "2.0.0-alpha.2", path = "../telemetry" } sc-telemetry = { version = "2.0.0-alpha.2", path = "../telemetry" }
sc-offchain = { version = "2.0.0-alpha.2", path = "../offchain" } sc-offchain = { version = "2.0.0-alpha.2", path = "../offchain" }
parity-multiaddr = { package = "parity-multiaddr", version = "0.5.0" } parity-multiaddr = { package = "parity-multiaddr", version = "0.7.3" }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus" , version = "0.8.0-alpha.2"} prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus" , version = "0.8.0-alpha.2"}
sc-tracing = { version = "2.0.0-alpha.2", path = "../tracing" } sc-tracing = { version = "2.0.0-alpha.2", path = "../tracing" }
tracing = "0.1.10" tracing = "0.1.10"
@@ -10,7 +10,7 @@ description = "CLI for benchmarking FRAME"
[dependencies] [dependencies]
frame-benchmarking = { version = "2.0.0-alpha.2", path = "../../../frame/benchmarking" } frame-benchmarking = { version = "2.0.0-alpha.2", path = "../../../frame/benchmarking" }
sc-service = { version = "0.8.0-alpha.2", path = "../../../client/service" } sc-service = { version = "0.8.0-alpha.2", default-features = false, path = "../../../client/service" }
sc-cli = { version = "0.8.0-alpha.2", path = "../../../client/cli" } sc-cli = { version = "0.8.0-alpha.2", path = "../../../client/cli" }
sc-client = { version = "0.8.0-alpha.2", path = "../../../client" } sc-client = { version = "0.8.0-alpha.2", path = "../../../client" }
sc-client-db = { version = "0.8.0-alpha.2", path = "../../../client/db" } sc-client-db = { version = "0.8.0-alpha.2", path = "../../../client/db" }