From 5a7981bc789f56a94095df7ce201ad35e11525b5 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Wed, 1 Sep 2021 17:32:37 +0100 Subject: [PATCH] Update to scale-info 1.0 --- Cargo.lock | 26 +++++++++++++++++++------- beefy-mmr-pallet/Cargo.toml | 2 +- beefy-pallet/Cargo.toml | 2 +- beefy-primitives/Cargo.toml | 2 +- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7601e9a0..a3d9fc82 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -571,7 +571,7 @@ version = "0.1.0" dependencies = [ "hex-literal", "parity-scale-codec", - "scale-info 0.12.0", + "scale-info 1.0.0", "sp-api", "sp-application-crypto", "sp-core", @@ -4006,7 +4006,7 @@ dependencies = [ "frame-system", "pallet-session", "parity-scale-codec", - "scale-info 0.12.0", + "scale-info 1.0.0", "serde", "sp-core", "sp-io", @@ -4032,7 +4032,7 @@ dependencies = [ "pallet-mmr-primitives", "pallet-session", "parity-scale-codec", - "scale-info 0.12.0", + "scale-info 1.0.0", "serde", "sp-core", "sp-io", @@ -6112,20 +6112,20 @@ dependencies = [ "cfg-if 1.0.0", "derive_more", "parity-scale-codec", - "scale-info-derive", + "scale-info-derive 0.7.0", ] [[package]] name = "scale-info" -version = "0.12.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cf40f28c3eca6a9abe66aa368d7475f6c92a626fb5737d131c82c0170b24f36" +checksum = "5c55b744399c25532d63a0d2789b109df8d46fc93752d46b0782991a931a782f" dependencies = [ "bitvec 0.20.4", "cfg-if 1.0.0", "derive_more", "parity-scale-codec", - "scale-info-derive", + "scale-info-derive 1.0.0", ] [[package]] @@ -6140,6 +6140,18 @@ dependencies = [ "syn", ] +[[package]] +name = "scale-info-derive" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baeb2780690380592f86205aa4ee49815feb2acad8c2f59e6dd207148c3f1fcd" +dependencies = [ + "proc-macro-crate 1.0.0", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "schannel" version = "0.1.19" diff --git a/beefy-mmr-pallet/Cargo.toml b/beefy-mmr-pallet/Cargo.toml index 7f55f528..aacc20c2 100644 --- a/beefy-mmr-pallet/Cargo.toml +++ b/beefy-mmr-pallet/Cargo.toml @@ -11,7 +11,7 @@ hex = { version = "0.4", optional = true } codec = { version = "2.0.0", package = "parity-scale-codec", default-features = false, features = ["derive"] } libsecp256k1 = { version = "0.6.0", default-features = false } log = { version = "0.4.13", default-features = false } -scale-info = { version = "0.12.0", default-features = false, features = ["derive"] } +scale-info = { version = "1.0", default-features = false, features = ["derive"] } serde = { version = "1.0.130", optional = true } frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } diff --git a/beefy-pallet/Cargo.toml b/beefy-pallet/Cargo.toml index 2631d807..a06b5cf3 100644 --- a/beefy-pallet/Cargo.toml +++ b/beefy-pallet/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] codec = { version = "2.0.0", package = "parity-scale-codec", default-features = false, features = ["derive"] } -scale-info = { version = "0.12.0", default-features = false, features = ["derive"] } +scale-info = { version = "1.0", default-features = false, features = ["derive"] } serde = { version = "1.0.130", optional = true } frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } diff --git a/beefy-primitives/Cargo.toml b/beefy-primitives/Cargo.toml index 0d2b556f..89fe14fa 100644 --- a/beefy-primitives/Cargo.toml +++ b/beefy-primitives/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] codec = { version = "2.0.0", package = "parity-scale-codec", default-features = false, features = ["derive"] } -scale-info = { version = "0.12.0", default-features = false, features = ["derive"], optional = true } +scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true } sp-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } sp-application-crypto = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }