-
Hello, I'm aware that if I define an enum in slint I'm able to use it in rust, but due to how my project is structured it would make more sense for me to define some structs in rust and then import them in to the |
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Nov 11, 2024
Replies: 1 comment
-
No, this is currently not possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
laycookie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, this is currently not possible.
The reason is that we want to keep the .slint file self-contained so that they can be previewed without having to compile the rust code.
We may support that in the future. This is tracked by issue #1726