Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing guide/ example #18

Open
zendurix opened this issue Aug 31, 2020 · 1 comment
Open

Missing guide/ example #18

zendurix opened this issue Aug 31, 2020 · 1 comment

Comments

@zendurix
Copy link

I am trying to expand Rust code to other languages using Rust_swig, which is using syn.
From what I understand syn-inline-mod can parse Rust code, and it understands #cfg, which syn lacks (dtolnay/syn#588). I am trying to use syn-inline-mod in Rust swig, but I don't fully understand it. Can you include some guide/ example code on how to use it?

@zendurix zendurix changed the title Missing guide/ exmaple Missing guide/ example Aug 31, 2020
@TedDriggs
Copy link
Owner

I don't have bandwidth to write one at the moment, I'm afraid. syn-inline-mod is extremely simple: It turns a Rust file which references modules from other files into a single AST with those modules inlined. It's understanding of cfg is very limited; for most use cases you'll still have to parse cfg declarations yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants