cunarist / rinf

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

Provide `debug_print!` macro and report Rust panics to Flutter #177

Closed temeddix closed 1 year ago

temeddix commented 1 year ago

Changes

Until now, there was no reliable way to print debug messages on all environments. There was crate::print!, but this could not work in mobile emulators. Also, various panics were not visible.

This PR improves debugging experience.

Before Committing

Please make sure that you've formatted the files.

dart format .
cargo fmt
cargo clippy --fix --allow-dirty