Rust calls Dart: Result
type not translated into Dart return/exception
#1928
Labels
bug
Something isn't working
Result
type not translated into Dart return/exception
#1928
Describe the bug
The simple example from 'Rust calls Dart
doesn't generate sensible Dart code when using a
Result` return type.Steps to reproduce
Same as in #1927 : See the reproducer here: https://github.com/vhdirk/flutter_rust_bridge/blob/future-result/frb_example/dart_minimal/rust/src/api/minimal.rs.
The following function does not get properly translated into Dart:
Instead, it generates on
opaque
type for theResult
.Logs
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of
flutter_rust_bridge_codegen
No response
Flutter info
No response
Version of
clang++
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: