#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

#12 in #unreachable

Download history 383/week @ 2024-11-15 644/week @ 2024-11-22 623/week @ 2024-11-29 654/week @ 2024-12-06 818/week @ 2024-12-13 417/week @ 2024-12-20 224/week @ 2024-12-27 491/week @ 2025-01-03 1176/week @ 2025-01-10 797/week @ 2025-01-17 579/week @ 2025-01-24 1429/week @ 2025-01-31 2314/week @ 2025-02-07 668/week @ 2025-02-14 911/week @ 2025-02-21 435/week @ 2025-02-28

4,770 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