|
|
|
|
|
by notriddle
1505 days ago
|
|
You need to run it in a separate process. Rust does not have good enough fault isolation features to safely assume a buggy image processor won’t break your app. * Entering an infinite loop can bring down everything. A separate thread might not, but since Rust provides no way to kill a thread without it cooperating, there is no way to stop a stuck thread without bringing down the whole process. * Stack overflow is an instant abort, not a panic. * Double panic, where panicking calls a destructor that itself panics, is an instant abort. |
|