Wrapping enum for external rust crate #2787
Unanswered
JonathanPlasse
asked this question in
Questions
Replies: 2 comments 2 replies
-
Sorry for the slow reply. Rust proc-macros work off the syntax they are applied to, so unfortunately you can't just add There are crates like deflect which enable reflection at runtime, which might eventually provide a way to make this work. However, those techniques are still experimental and only work on Linux, so I'm not rushing to try them out for PyO3 yet. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your response, so I just have to copy the enum and implement a conversion from the copied enum to the external enum. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to wrap an enum from an external crate to apply
pyclass
on it?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions