#rest

debug_unreachable

unreachable!() in debug, std::intrinsics::unreachable() in release

8 releases

Uses old Rust 2015

0.1.1 Mar 5, 2016
0.1.0 Feb 16, 2016
0.0.6 Jul 20, 2015
0.0.5 Jun 2, 2015
0.0.2 Dec 3, 2014

#247 in #rest

Download history 747/week @ 2024-07-23 665/week @ 2024-07-30 810/week @ 2024-08-06 891/week @ 2024-08-13 652/week @ 2024-08-20 896/week @ 2024-08-27 806/week @ 2024-09-03 593/week @ 2024-09-10 651/week @ 2024-09-17 725/week @ 2024-09-24 498/week @ 2024-10-01 271/week @ 2024-10-08 604/week @ 2024-10-15 646/week @ 2024-10-22 595/week @ 2024-10-29 531/week @ 2024-11-05

2,459 downloads per month
Used in 80 crates (2 directly)

MIT license

2KB

debug_unreachable

unreachable!() in debug, std::intrinsics::unreachable() in release.

Documentation

Usage

Use the crates.io repository; add this to your Cargo.toml along with the rest of your dependencies:

[dependencies]
debug_unreachable = "0.1"

Author

Jonathan Reem is the primary author and maintainer of debug-unreachable.

License

MIT


lib.rs:

panic!() in debug builds, optimization hint in release.

Dependencies

~11KB