scylladb / cpp-rust-driver

API-compatible rewrite of https://github.com/scylladb/cpp-driver as a wrapper for Rust driver.
GNU Lesser General Public License v2.1
16 stars 11 forks source link

Set panic behaviour to abort instead of unwinding #118

Closed wprzytula closed 1 year ago

wprzytula commented 1 year ago

As bindings' code is called by C/C++ code, and unwinding into foreign code is UB in Rust, panic behaviour is set to abort. From now on, panicking is a perfectly valid way of handling critical errors.

Resolves: #117

Pre-review checklist