#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

#10 in #unreachable

Download history 602/week @ 2024-03-13 1076/week @ 2024-03-20 842/week @ 2024-03-27 819/week @ 2024-04-03 728/week @ 2024-04-10 808/week @ 2024-04-17 768/week @ 2024-04-24 719/week @ 2024-05-01 644/week @ 2024-05-08 754/week @ 2024-05-15 759/week @ 2024-05-22 832/week @ 2024-05-29 692/week @ 2024-06-05 623/week @ 2024-06-12 694/week @ 2024-06-19 691/week @ 2024-06-26

2,843 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