diff --git a/proc_macros/README.md b/proc_macros/README.md new file mode 100644 index 0000000..8f28ea2 --- /dev/null +++ b/proc_macros/README.md @@ -0,0 +1,2 @@ +# Procedural macros for scs-sdk-rs +This crate contains proc macros for [scs-sdk-rs](https://crates.io/crates/scs-sdk-rs) \ No newline at end of file diff --git a/proc_macros/src/lib.rs b/proc_macros/src/lib.rs index 401ecb8..4f759a9 100644 --- a/proc_macros/src/lib.rs +++ b/proc_macros/src/lib.rs @@ -21,7 +21,7 @@ pub fn scs_api(args: TokenStream, input: TokenStream) -> TokenStream { input.sig.abi = syn::parse_str("extern \"C\"").unwrap(); if api_type == "result" { - input.sig.output = syn::parse_str("-> scs_rs::scs_result_t").unwrap(); + input.sig.output = syn::parse_str("-> scs_sdk_rs::scs_result_t").unwrap(); } TokenStream::from(quote!(#input)) @@ -33,9 +33,9 @@ pub fn scs_telemetry_init(_args: TokenStream, input: TokenStream) -> TokenStream let mut input = parse_macro_input!(input as ItemFn); let mut punc = Punctuated::new(); - punc.push_value(syn::parse_str::("version: scs_rs::scs_u32_t").unwrap()); + punc.push_value(syn::parse_str::("version: scs_sdk_rs::scs_u32_t").unwrap()); punc.push_punct(syn::parse_str::(",").unwrap()); - punc.push_value(syn::parse_str("params: *const scs_rs::scs_telemetry_init_params_t").unwrap()); + punc.push_value(syn::parse_str("params: *const scs_sdk_rs::scs_telemetry_init_params_t").unwrap()); input.sig.inputs = punc; input.sig.ident = syn::parse_str("scs_telemetry_init").unwrap();