From f1aec014da539497d4601a49211cd92244fdaeb2 Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:36:35 -0500 Subject: [PATCH] fix(blueprint-proc-macro): set `tokio` crate in `sdk::main` So that blueprints don't have to explicitly depend on `tokio`. --- macros/blueprint-proc-macro/src/sdk_main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/blueprint-proc-macro/src/sdk_main.rs b/macros/blueprint-proc-macro/src/sdk_main.rs index 5a573c7d..9214ce7f 100644 --- a/macros/blueprint-proc-macro/src/sdk_main.rs +++ b/macros/blueprint-proc-macro/src/sdk_main.rs @@ -26,9 +26,9 @@ pub(crate) struct SdkMainArgs { pub(crate) fn sdk_main_impl(args: &SdkMainArgs, input: &ItemFn) -> syn::Result { let tokio_args = if let Some(args) = &args.tokio_args { - quote! { ( #(#args),* ) } + quote! { ( crate = "::gadget_sdk::tokio", #(#args),* ) } } else { - quote! {} + quote! { ( crate = "::gadget_sdk::tokio" ) } }; let env_function_signature = if args.env {