MCPcopy Create free account
hub / github.com/dfinity/orbit / storable

Function storable

libs/orbit-essentials-macros/src/lib.rs:148–159  ·  view source on GitHub ↗
(input_args: TokenStream, input: TokenStream)

Source from the content-addressed store, hash-verified

146/// - Accepts schema evolution with field addition in structs, but only if serde's `default` attribute is used.
147#[proc_macro_attribute]
148pub fn storable(input_args: TokenStream, input: TokenStream) -> TokenStream {
149 utils::handle_macro_errors(
150 |input_args, input| {
151 let macro_impl = macros::storable::StorableMacro::new(input_args, input);
152
153 macro_impl.build()
154 },
155 macros::storable::StorableMacro::MACRO_NAME,
156 input_args,
157 input,
158 )
159}

Callers

nothing calls this directly

Calls 2

handle_macro_errorsFunction · 0.85
buildMethod · 0.45

Tested by

no test coverage detected