Skip to content

Commit

Permalink
Consolidate the common items for the different field types
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrobbel committed Aug 1, 2023
1 parent 538c16c commit 427bebb
Show file tree
Hide file tree
Showing 36 changed files with 1,431 additions and 1,461 deletions.
2 changes: 1 addition & 1 deletion narrow-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ once_cell = "1.18.0"
proc-macro-crate = "1.3.1"
proc-macro2 = "1.0.66"
quote = "1.0.31"
syn = { version = "2.0.26", features = ["extra-traits", "visit", "visit-mut"] }
syn = { version = "2.0.26", features = ["visit-mut", "full"] }

[dev-dependencies]
macrotest = "1.0.9"
1 change: 1 addition & 0 deletions narrow-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ static NARROW: Lazy<String> = Lazy::new(|| match proc_macro_crate::crate_name(CR
});

/// Derive macro for the ArrayType trait.
///
#[proc_macro_derive(ArrayType, attributes(narrow))]
pub fn derive_array_type(input: TokenStream) -> TokenStream {
let input = parse_macro_input!(input as DeriveInput);
Expand Down
Loading

0 comments on commit 427bebb

Please sign in to comment.