#panic #no-std #context #analog #thread #abort #return

no-std panicking

Provides a std::thread::panicking analog available in the no_std context

8 releases (4 breaking)

0.4.0 Jul 2, 2022
0.3.1 Jun 27, 2022
0.2.0 Jun 5, 2022
0.1.2 Jun 5, 2022
0.0.1 Aug 28, 2021

#2720 in Rust patterns

Download history 27/week @ 2024-01-15 69/week @ 2024-02-05 236/week @ 2024-02-12 229/week @ 2024-02-19 286/week @ 2024-02-26 230/week @ 2024-03-04 254/week @ 2024-03-11 246/week @ 2024-03-18 258/week @ 2024-03-25 301/week @ 2024-04-01 248/week @ 2024-04-08 255/week @ 2024-04-15 238/week @ 2024-04-22 217/week @ 2024-04-29

1,011 downloads per month
Used in 10 crates (9 directly)

MIT/Apache

8KB
110 lines

maintenance: actively developed

panicking

Provides a std::thread::panicking analog available in the no_std context.

The crate has two features — "abort" and "std", and a final application should enable at least one of them, otherwise a linkage error will be emitted.


lib.rs:

Crate features

  • "std" Enabled by default. Disable to make the library #![no_std].

  • "abort" Enable to link the library with the (unstable) panic_abort standard crate, and make panicking always return false.

The crate has two features — "abort" and "std", and a final application should enable at least one of them, otherwise a linkage error will be emitted.

No runtime deps

Features