Skip to content

Different syn versions #7

@TotalKrill

Description

@TotalKrill
   = note: expected type `&syn::file::File` (struct `syn::file::File`)
              found type `&syn::file::File` (struct `syn::file::File`)
note: Perhaps two different versions of crate `syn` are being used?
  --> src/main.rs:38:39
   |
38 |     let functions = get_syn_functions(&syntax);

This is a snippet from the error i get when I want to get an entire syn-parsed file using syn-inline-mod.

Maybe this crate could be split into just doing the inline part and returning an entire inlined source code. Allowing one to use their own version of syn with the feature flags that I need.

And having the parsing part separate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions