Files
pezkuwi-subxt/prdoc/pr_4060.prdoc
T
Oliver Tale-Yazdi 7a2c9d4a9a Fix nostd build of several crates (#4060)
Preparation for https://github.com/paritytech/polkadot-sdk/pull/3935

Changes:
- Add some `default-features = false` for the case that a crate and that
dependency both support nostd builds.
- Shuffle files around of some benchmarking-only crates. These
conditionally disabled the `cfg_attr` for nostd and pulled in libstd.
Example [here](https://github.com/ggwpez/zepter/pull/95). The actual
logic is moved into a `inner.rs` to preserve nostd capability of the
crate in case the benchmarking feature is disabled.
- Add some `use sp_std::vec` where needed.
- Remove some `optional = true` in cases where it was not optional.
- Removed one superfluous `cfg_attr(not(feature = "std"), no_std..`.

All in all this should be logical no-op.

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2024-04-17 15:52:00 +00:00

55 lines
1.4 KiB
Plaintext

title: "Fix nostd build of several crates"
doc:
- audience: Runtime Dev
description: |
Fixes feature and dependency configuration of several crate. This should allow for better no-std build capabilities.
crates:
- name: cumulus-pallet-session-benchmarking
bump: patch
- name: asset-hub-rococo-runtime
bump: patch
- name: glutton-westend-runtime
bump: patch
- name: cumulus-primitives-parachain-inherent
bump: patch
- name: polkadot-primitives
bump: patch
- name: polkadot-runtime-parachains
bump: patch
- name: xcm-executor-integration-tests
bump: patch
- name: pallet-atomic-swap
bump: patch
- name: pallet-election-provider-support-benchmarking
bump: patch
- name: pallet-dev-mode
bump: patch
- name: pallet-example-offchain-worker
bump: patch
- name: pallet-indices
bump: patch
- name: pallet-nomination-pools
bump: patch
- name: pallet-nomination-pools-benchmarking
bump: patch
- name: pallet-offences-benchmarking
bump: patch
- name: pallet-root-offences
bump: patch
- name: pallet-session-benchmarking
bump: patch
- name: frame-system-benchmarking
bump: patch
- name: sp-consensus-babe
bump: patch
- name: sp-consensus-babe
bump: patch
- name: sp-core
bump: patch
- name: sp-session
bump: patch
- name: sp-transaction-storage-proof
bump: patch