rust-qt / ritual

Use C++ libraries from Rust
Apache License 2.0
1.22k stars 49 forks source link

Exception/panic safety #37

Open Riateche opened 7 years ago

Riateche commented 7 years ago

Passing exceptions and panics through FFI boundary is forbidden. It's probably best to wrap all C++ calls to try/catch and all Rust lambda calls to catch_unwind, and terminate the process completely in case of an exception or a panic, but we need to test if there are any negative effects.