#unreachable #intrinsics

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

#7 in #unreachable

Download history 801/week @ 2023-12-23 601/week @ 2023-12-30 2770/week @ 2024-01-06 3129/week @ 2024-01-13 1769/week @ 2024-01-20 707/week @ 2024-01-27 505/week @ 2024-02-03 688/week @ 2024-02-10 949/week @ 2024-02-17 759/week @ 2024-02-24 898/week @ 2024-03-02 844/week @ 2024-03-09 773/week @ 2024-03-16 997/week @ 2024-03-23 943/week @ 2024-03-30 522/week @ 2024-04-06

3,298 downloads per month
Used in 81 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