Skip to content

Commit

Permalink
Ignore nif function list
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed May 30, 2024
1 parent b5f091e commit 6f790dc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rustler_codegen/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ pub struct InitMacroInput {
impl Parse for InitMacroInput {
fn parse(input: ParseStream) -> Result<Self> {
let name = syn::Lit::parse(input)?;
let _comma = <syn::Token![,]>::parse(input)?;
let _funcs = syn::ExprArray::parse(input)?;

if input.peek(syn::token::Comma) && input.peek2(syn::token::Bracket) {
let _ = syn::token::Comma::parse(input);
let _funcs = syn::ExprArray::parse(input);
// TODO: Generate deprecation warning
}

let options = parse_expr_assigns(input);
let load = extract_option(options, "load");

Expand Down

0 comments on commit 6f790dc

Please sign in to comment.