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
Looks like a bug, feel free to PR to fix it! Alternative I will work on it later, but since this has easy workaround (do not use r#keyword style) may not be within days.
Describe the bug
Given a third party simple struct like this
and a mirror to it within frb crate
The generated code to type check the mirror doesn't include the
r#
Since
type
is a keyword, rust won't compile unless it's prefixed withr#
and will complain syntax error.Steps to reproduce
N/A
Logs
Expected behavior
The generated static check should respect
r#
if any in the mirror definitionGenerated binding code
No response
OS
Windows
Version of
flutter_rust_bridge_codegen
2.6.0
Flutter info
No response
Version of
clang++
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: