Skip to content

Commit

Permalink
Merge pull request #814 from jrose-signal/jrose/syn-mid
Browse files Browse the repository at this point in the history
Use syn-mid instead of syn + "full"
  • Loading branch information
kjvalencik committed Oct 21, 2021
2 parents 0b41cdc + e6a9683 commit 483b059
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion crates/neon-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ napi = []

[dependencies]
quote = "1"
syn = { version = "1", features = ["full"] }
syn = "1"
syn-mid = "0.5"
2 changes: 1 addition & 1 deletion crates/neon-macros/src/legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub(crate) fn main(
_attr: proc_macro::TokenStream,
item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
let input = syn::parse_macro_input!(item as syn::ItemFn);
let input = syn::parse_macro_input!(item as syn_mid::ItemFn);

let attrs = &input.attrs;
let vis = &input.vis;
Expand Down
2 changes: 1 addition & 1 deletion crates/neon-macros/src/napi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub(crate) fn main(
_attr: proc_macro::TokenStream,
item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
let input = syn::parse_macro_input!(item as syn::ItemFn);
let input = syn::parse_macro_input!(item as syn_mid::ItemFn);

let attrs = &input.attrs;
let vis = &input.vis;
Expand Down

0 comments on commit 483b059

Please sign in to comment.