Skip to content

Commit

Permalink
fix(blueprint-proc-macro): set tokio crate in sdk::main
Browse files Browse the repository at this point in the history
So that blueprints don't have to explicitly depend on `tokio`.
  • Loading branch information
Serial-ATA committed Nov 27, 2024
1 parent f35d0c1 commit f1aec01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/blueprint-proc-macro/src/sdk_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ pub(crate) struct SdkMainArgs {

pub(crate) fn sdk_main_impl(args: &SdkMainArgs, input: &ItemFn) -> syn::Result<TokenStream> {
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 {
Expand Down

0 comments on commit f1aec01

Please sign in to comment.