You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
zendurix
changed the title
Missing guide/ exmaple
Missing guide/ example
Aug 31, 2020
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.
I am trying to expand Rust code to other languages using
Rust_swig
, which is usingsyn
.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?The text was updated successfully, but these errors were encountered: