frame: Enable GenesisConfig in no_std (#14108)
* frame: Default for GenesisConfig in no_std `Default` for `GenesisConfig` will be required for no_std in no native runtime world. It must be possible to instantiate default GenesisConfig for pallets and runtime. * ".git/.scripts/commands/fmt/fmt.sh" * hash69 in no_std reverted * derive(DefaultNoBound) for GenesisConfig used when possible * treasury: derive(Default) * Cargo.lock update * genesis_config: compiler error improved When std feature is not enabled for pallet, the GenesisConfig will be defined, but serde::{Serialize,Deserialize} traits will not be implemented. The compiler error indicates the reason of latter errors. This is temporary and serde traits will be enabled with together with `serde` support in frame. --------- Co-authored-by: command-bot <>
Showing
- substrate/frame/alliance/src/lib.rs 1 addition, 7 deletionssubstrate/frame/alliance/src/lib.rs
- substrate/frame/assets/src/lib.rs 1 addition, 11 deletionssubstrate/frame/assets/src/lib.rs
- substrate/frame/aura/src/lib.rs 1 addition, 7 deletionssubstrate/frame/aura/src/lib.rs
- substrate/frame/authority-discovery/src/lib.rs 1 addition, 1 deletionsubstrate/frame/authority-discovery/src/lib.rs
- substrate/frame/babe/src/lib.rs 1 addition, 1 deletionsubstrate/frame/babe/src/lib.rs
- substrate/frame/balances/src/lib.rs 1 addition, 2 deletionssubstrate/frame/balances/src/lib.rs
- substrate/frame/beefy/src/lib.rs 0 additions, 1 deletionsubstrate/frame/beefy/src/lib.rs
- substrate/frame/collective/src/lib.rs 1 addition, 7 deletionssubstrate/frame/collective/src/lib.rs
- substrate/frame/democracy/src/lib.rs 1 addition, 7 deletionssubstrate/frame/democracy/src/lib.rs
- substrate/frame/elections-phragmen/src/lib.rs 1 addition, 7 deletionssubstrate/frame/elections-phragmen/src/lib.rs
- substrate/frame/examples/basic/src/lib.rs 1 addition, 8 deletionssubstrate/frame/examples/basic/src/lib.rs
- substrate/frame/grandpa/src/lib.rs 1 addition, 1 deletionsubstrate/frame/grandpa/src/lib.rs
- substrate/frame/im-online/src/lib.rs 1 addition, 7 deletionssubstrate/frame/im-online/src/lib.rs
- substrate/frame/indices/src/lib.rs 1 addition, 7 deletionssubstrate/frame/indices/src/lib.rs
- substrate/frame/membership/src/lib.rs 1 addition, 7 deletionssubstrate/frame/membership/src/lib.rs
- substrate/frame/node-authorization/src/lib.rs 1 addition, 7 deletionssubstrate/frame/node-authorization/src/lib.rs
- substrate/frame/nomination-pools/src/lib.rs 0 additions, 1 deletionsubstrate/frame/nomination-pools/src/lib.rs
- substrate/frame/scored-pool/src/lib.rs 1 addition, 7 deletionssubstrate/frame/scored-pool/src/lib.rs
- substrate/frame/session/src/lib.rs 1 addition, 7 deletionssubstrate/frame/session/src/lib.rs
- substrate/frame/society/src/lib.rs 1 addition, 11 deletionssubstrate/frame/society/src/lib.rs
Please register or sign in to comment