-
Notifications
You must be signed in to change notification settings - Fork 289
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
[Bug] u8,u16,i8,i16 not working in struct #429
Comments
Hi! Thanks for opening your first issue here! 😄 |
|
I guess it is a problem of the upstream library: https://github.com/sunshine-protocol/allo-isolate (I have contributed some code to that repo before) For example, i32 is here: |
The PR to upstream allo-isolate should be quite easy:
And you are done |
Isn't this inefficient? Presenting i8 or i16 with i32, can't we use Int8 and its friends? |
The |
What about dart-lang/sdk#36140 (comment) |
That is about ffi (used in another part of this lib), not about IntoDart which uses dart native c api. |
Upstream is fixed, would it be alright to update allo-isolate to |
Sure. Looking forward to PR. |
Will do after #434. Any blocker there? |
Done. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue. |
Describe the bug
Bug for #428. The testcase repo is here: https://github.com/sagudev/u8u16.
Rust code:
The generated code is not working as apparently into_dart is not impl for u8/u16/i8/i16.
When running
flutter run
we get the following errors from cargo (rust):Codegen logs with
RUST_LOG=debug
env variableTo Reproduce
No response
Expected behavior
No response
Generated binding code
No response
OS
Linux
Version of
flutter_rust_bridge_codegen
1.28
Flutter info
No response
Version of
clang++
No response
Version of
cbindgen
No response
Version of
ffigen
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: