mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 10:01:17 +00:00
Remove serde requirement from FRAME macros (#8628)
* Remove `serde` requirement from FRAME macros Currently there is some implicit requirement on `serde` being present in the `Cargo.toml` of a pallet when `GenesisConfig` is used. This pr removes this requirement by using the serde attribute `serde(crate = "..")`. * build a unique reexport of serde in impl_opaque_keys, by abusing paste doc concatenation * Optimize Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
@@ -17,7 +17,6 @@ sp-authority-discovery = { version = "3.0.0", default-features = false, path = "
|
||||
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
pallet-session = { version = "3.0.0", features = ["historical" ], path = "../session", default-features = false }
|
||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||
@@ -35,7 +34,6 @@ std = [
|
||||
"sp-authority-discovery/std",
|
||||
"codec/std",
|
||||
"sp-std/std",
|
||||
"serde",
|
||||
"pallet-session/std",
|
||||
"sp-runtime/std",
|
||||
"frame-support/std",
|
||||
|
||||
Reference in New Issue
Block a user