mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
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>
This commit is contained in:
committed by
GitHub
parent
bfbf7f5d6f
commit
7a2c9d4a9a
@@ -26,7 +26,7 @@ sp-consensus-slots = { path = "../slots", default-features = false }
|
||||
sp-core = { path = "../../core", default-features = false }
|
||||
sp-inherents = { path = "../../inherents", default-features = false }
|
||||
sp-runtime = { path = "../../runtime", default-features = false }
|
||||
sp-timestamp = { path = "../../timestamp", optional = true }
|
||||
sp-timestamp = { path = "../../timestamp", optional = true, default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -37,7 +37,7 @@ ss58-registry = { version = "1.34.0", default-features = false }
|
||||
sp-std = { path = "../std", default-features = false }
|
||||
sp-debug-derive = { path = "../debug-derive", default-features = false }
|
||||
sp-storage = { path = "../storage", default-features = false }
|
||||
sp-externalities = { path = "../externalities", optional = true }
|
||||
sp-externalities = { path = "../externalities", optional = true, default-features = false }
|
||||
futures = { version = "0.3.30", optional = true }
|
||||
dyn-clonable = { version = "0.9.0", optional = true }
|
||||
thiserror = { optional = true, workspace = true }
|
||||
|
||||
@@ -20,9 +20,9 @@ codec = { package = "parity-scale-codec", version = "3.6.1", default-features =
|
||||
scale-info = { version = "2.11.1", default-features = false, features = ["derive"] }
|
||||
sp-api = { path = "../api", default-features = false }
|
||||
sp-core = { path = "../core", default-features = false }
|
||||
sp-runtime = { path = "../runtime", optional = true }
|
||||
sp-runtime = { path = "../runtime", optional = true, default-features = false }
|
||||
sp-staking = { path = "../staking", default-features = false }
|
||||
sp-keystore = { path = "../keystore", optional = true }
|
||||
sp-keystore = { path = "../keystore", optional = true, default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -19,10 +19,10 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
async-trait = { version = "0.1.79", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.11.1", default-features = false, features = ["derive"] }
|
||||
sp-core = { path = "../core", optional = true }
|
||||
sp-core = { path = "../core", optional = true, default-features = false }
|
||||
sp-inherents = { path = "../inherents", default-features = false }
|
||||
sp-runtime = { path = "../runtime", default-features = false }
|
||||
sp-trie = { path = "../trie", optional = true }
|
||||
sp-trie = { path = "../trie", optional = true, default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
Reference in New Issue
Block a user