mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 12:11:09 +00:00
Restructure frame_support macro related exports (#14745)
* make reexports private * make reexports private 2 * make reexports private for runtime-benchmarking * make reexports private for try-runtime * fix for try-runtime * make reexports private for tests * fmt * make reexports private for tests * make reexports private for experimental * fix beefy * fix ui test * fix ui test * fix benches * ".git/.scripts/commands/fmt/fmt.sh" * fix contracts use * wip * wip * do not reexport sp_api::metadata_ir * fix CI checks * fix support tests * ".git/.scripts/commands/fmt/fmt.sh" * Update frame/support/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> * import codec directly * fmt * fix node-cli tests --------- Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -24,11 +24,23 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../primi
|
||||
sp-std = { version = "8.0.0", default-features = false, path = "../../primitives/std" }
|
||||
sp-core = { version = "21.0.0", path = "../../primitives/core", default-features = false }
|
||||
sp-io = { version = "23.0.0", path = "../../primitives/io", default-features = false }
|
||||
sp-metadata-ir = { version = "0.1.0", default-features = false, optional = true, path = "../../primitives/metadata-ir" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
std = ["codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "scale-info/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"frame-benchmarking?/std",
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"scale-info/std",
|
||||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"sp-metadata-ir/std"
|
||||
]
|
||||
|
||||
runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks"]
|
||||
|
||||
@@ -37,3 +49,7 @@ try-runtime = [
|
||||
"frame-system/try-runtime",
|
||||
"sp-runtime/try-runtime"
|
||||
]
|
||||
|
||||
frame-metadata = [
|
||||
"sp-metadata-ir"
|
||||
]
|
||||
|
||||
@@ -408,12 +408,12 @@ where
|
||||
pub(crate) mod mock {
|
||||
pub use super::*;
|
||||
pub use frame_support::{
|
||||
metadata_ir::{StorageEntryModifierIR, StorageEntryTypeIR, StorageHasherIR},
|
||||
parameter_types,
|
||||
storage::{types::ValueQuery, StorageList as _},
|
||||
StorageNoopGuard,
|
||||
};
|
||||
pub use sp_io::{hashing::twox_128, TestExternalities};
|
||||
pub use sp_metadata_ir::{StorageEntryModifierIR, StorageEntryTypeIR, StorageHasherIR};
|
||||
|
||||
parameter_types! {
|
||||
pub const ValuesPerNewPage: u32 = 5;
|
||||
|
||||
Reference in New Issue
Block a user