Remove usage of `sp-std` from Substrate (#7043)
# Description This PR removes usage of deprecated `sp-std` from Substrate. (following PR of #5010) ## Integration This PR doesn't remove re-exported `sp_std` from any crates yet, so downstream projects using re-exported `sp_std` will not be affected. ## Review Notes The existing code using `sp-std` is refactored to use `alloc` and `core` directly. The key-value maps are instantiated from a vector of tuples directly instead of using `sp_std::map!` macro. `sp_std::Writer` is a helper type to use `Vec<u8>` with `core::fmt::Write` trait. This PR copied it into `sp-runtime`, because all crates using `sp_std::Writer` (including `sp-runtime` itself, `frame-support`, etc.) depend on `sp-runtime`. If this PR is merged, I would write following PRs to remove remaining usage of `sp-std` from `bridges` and `cumulus`. --------- Co-authored-by: command-bot <> Co-authored-by:Guillaume Thiolliere <guillaume.thiolliere@parity.io> Co-authored-by:
Bastian Köcher <info@kchr.de> Co-authored-by:
Bastian Köcher <git@kchr.de>
Showing
- Cargo.lock 0 additions, 11 deletionsCargo.lock
- prdoc/pr_7043.prdoc 51 additions, 0 deletionsprdoc/pr_7043.prdoc
- substrate/client/sysinfo/Cargo.toml 0 additions, 1 deletionsubstrate/client/sysinfo/Cargo.toml
- substrate/frame/bags-list/remote-tests/Cargo.toml 0 additions, 1 deletionsubstrate/frame/bags-list/remote-tests/Cargo.toml
- substrate/frame/contracts/Cargo.toml 0 additions, 2 deletionssubstrate/frame/contracts/Cargo.toml
- substrate/frame/contracts/proc-macro/src/lib.rs 3 additions, 4 deletionssubstrate/frame/contracts/proc-macro/src/lib.rs
- substrate/frame/contracts/src/transient_storage.rs 2 additions, 2 deletionssubstrate/frame/contracts/src/transient_storage.rs
- substrate/frame/election-provider-multi-phase/test-staking-e2e/Cargo.toml 0 additions, 1 deletion...election-provider-multi-phase/test-staking-e2e/Cargo.toml
- substrate/frame/nft-fractionalization/Cargo.toml 0 additions, 1 deletionsubstrate/frame/nft-fractionalization/Cargo.toml
- substrate/frame/nomination-pools/test-delegate-stake/Cargo.toml 0 additions, 1 deletion...ate/frame/nomination-pools/test-delegate-stake/Cargo.toml
- substrate/frame/nomination-pools/test-transfer-stake/Cargo.toml 0 additions, 1 deletion...ate/frame/nomination-pools/test-transfer-stake/Cargo.toml
- substrate/frame/revive/Cargo.toml 0 additions, 2 deletionssubstrate/frame/revive/Cargo.toml
- substrate/frame/revive/proc-macro/src/lib.rs 3 additions, 4 deletionssubstrate/frame/revive/proc-macro/src/lib.rs
- substrate/frame/revive/src/transient_storage.rs 2 additions, 2 deletionssubstrate/frame/revive/src/transient_storage.rs
- substrate/frame/root-offences/Cargo.toml 0 additions, 1 deletionsubstrate/frame/root-offences/Cargo.toml
- substrate/frame/support/procedural/src/pallet/expand/config.rs 3 additions, 3 deletions...rate/frame/support/procedural/src/pallet/expand/config.rs
- substrate/frame/support/src/lib.rs 4 additions, 3 deletionssubstrate/frame/support/src/lib.rs
- substrate/frame/system/Cargo.toml 0 additions, 2 deletionssubstrate/frame/system/Cargo.toml
- substrate/frame/system/src/lib.rs 8 additions, 8 deletionssubstrate/frame/system/src/lib.rs
- substrate/frame/uniques/Cargo.toml 0 additions, 1 deletionsubstrate/frame/uniques/Cargo.toml
Please register or sign in to comment