cunarist / rinf

Rust for native business logic, Flutter for flexible and beautiful GUI
MIT License
1.99k stars 72 forks source link

Make `requestToRust` function return `null` when failed #257

Closed temeddix closed 10 months ago

temeddix commented 10 months ago

Changes

Before this change, panics in Rust handler function will not return a response to Dart immediately. That's why we needed those timeout functions. Now, Dart will receive null immediately when Rust failed to respond.

Before Committing

Please make sure that you've analyzed and formatted the files.

dart analyze flutter_ffi_plugin --fatal-infos
dart format .
cargo fmt
cargo clippy --fix --allow-dirty