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>
Showing
- substrate/Cargo.lock 0 additions, 36 deletionssubstrate/Cargo.lock
- substrate/bin/node-template/runtime/Cargo.toml 0 additions, 2 deletionssubstrate/bin/node-template/runtime/Cargo.toml
- substrate/bin/node/runtime/Cargo.toml 0 additions, 2 deletionssubstrate/bin/node/runtime/Cargo.toml
- substrate/frame/assets/Cargo.toml 0 additions, 2 deletionssubstrate/frame/assets/Cargo.toml
- substrate/frame/atomic-swap/Cargo.toml 0 additions, 2 deletionssubstrate/frame/atomic-swap/Cargo.toml
- substrate/frame/aura/Cargo.toml 0 additions, 2 deletionssubstrate/frame/aura/Cargo.toml
- substrate/frame/authority-discovery/Cargo.toml 0 additions, 2 deletionssubstrate/frame/authority-discovery/Cargo.toml
- substrate/frame/babe/Cargo.toml 0 additions, 2 deletionssubstrate/frame/babe/Cargo.toml
- substrate/frame/balances/Cargo.toml 0 additions, 2 deletionssubstrate/frame/balances/Cargo.toml
- substrate/frame/bounties/Cargo.toml 0 additions, 2 deletionssubstrate/frame/bounties/Cargo.toml
- substrate/frame/collective/Cargo.toml 0 additions, 2 deletionssubstrate/frame/collective/Cargo.toml
- substrate/frame/election-provider-multi-phase/Cargo.toml 0 additions, 2 deletionssubstrate/frame/election-provider-multi-phase/Cargo.toml
- substrate/frame/elections-phragmen/Cargo.toml 0 additions, 2 deletionssubstrate/frame/elections-phragmen/Cargo.toml
- substrate/frame/elections/Cargo.toml 0 additions, 2 deletionssubstrate/frame/elections/Cargo.toml
- substrate/frame/example-offchain-worker/Cargo.toml 0 additions, 2 deletionssubstrate/frame/example-offchain-worker/Cargo.toml
- substrate/frame/example/Cargo.toml 0 additions, 2 deletionssubstrate/frame/example/Cargo.toml
- substrate/frame/executive/Cargo.toml 0 additions, 2 deletionssubstrate/frame/executive/Cargo.toml
- substrate/frame/gilt/Cargo.toml 0 additions, 2 deletionssubstrate/frame/gilt/Cargo.toml
- substrate/frame/grandpa/Cargo.toml 0 additions, 2 deletionssubstrate/frame/grandpa/Cargo.toml
- substrate/frame/identity/Cargo.toml 0 additions, 2 deletionssubstrate/frame/identity/Cargo.toml
Please register or sign in to comment