mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 10:01:02 +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:
@@ -49,9 +49,9 @@ impl syn::parse::Parse for CreateTtReturnMacroDef {
|
||||
}
|
||||
|
||||
/// A proc macro that accepts a name and any number of key-value pairs, to be used to create a
|
||||
/// declarative macro that follows tt-call conventions and simply calls [`tt_call::tt_return`],
|
||||
/// accepting an optional `frame-support` argument and returning the key-value pairs that were
|
||||
/// supplied to the proc macro.
|
||||
/// declarative macro that follows tt-call conventions and simply calls
|
||||
/// [`tt_call::tt_return`], accepting an optional `frame-support` argument and returning
|
||||
/// the key-value pairs that were supplied to the proc macro.
|
||||
///
|
||||
/// # Example
|
||||
/// ```ignore
|
||||
@@ -67,7 +67,7 @@ impl syn::parse::Parse for CreateTtReturnMacroDef {
|
||||
/// $caller:tt
|
||||
/// $(frame_support = [{ $($frame_support:ident)::* }])?
|
||||
/// } => {
|
||||
/// frame_support::tt_return! {
|
||||
/// frame_support::__private::tt_return! {
|
||||
/// $caller
|
||||
/// foo = [{ bar }]
|
||||
/// }
|
||||
@@ -94,7 +94,7 @@ pub fn create_tt_return_macro(input: proc_macro::TokenStream) -> proc_macro::Tok
|
||||
$caller:tt
|
||||
$(frame_support = [{ $($frame_support:ident)::* }])?
|
||||
} => {
|
||||
#frame_support::tt_return! {
|
||||
#frame_support::__private::tt_return! {
|
||||
$caller
|
||||
#(
|
||||
#keys = [{ #values }]
|
||||
|
||||
Reference in New Issue
Block a user