#panic #catch #unwind

catch-unwind

Wrappers for catch_unwind that handle the edge case of the caught panic payload panicing

4 releases (2 breaking)

0.3.0 Jun 19, 2024
0.2.0 Jun 18, 2024
0.1.1 Jun 18, 2024
0.1.0 Jun 18, 2024

#1096 in Rust patterns

Download history 270/week @ 2024-06-14 43/week @ 2024-06-21 4/week @ 2024-06-28

105 downloads per month

Zlib OR MIT OR Apache-2.0

8KB
125 lines

catch-unwind

This crate provides wrappers for std::panic::catch_unwind that handle the edge case of the caught panic payload itself panicing when dropped.

See the documentation at https://docs.rs/catch-unwind.

Version history

  • 0.3.0 - Added catch_unwind_wrapped, removed catch_unwind_with
  • 0.2.0 - Replace the with functions from 0.1.1 with a more general catch_unwind_with
  • 0.1.1 - Added catch_unwind_with_or_abort and catch_unwind_with_or_forget
  • 0.1.0 - Initial release

lib.rs:

This crate provides wrappers for std::panic::catch_unwind that handle the edge case of the caught panic payload itself panicing when dropped.

No runtime deps