resolvo 0.10.2

Fast package resolver written in Rust (CDCL based SAT solving)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// An unsafe method that unwraps an option without checking if it is `None` in
/// release mode but does check the value in debug mode.
#[track_caller]
pub unsafe fn debug_expect_unchecked<T>(opt: Option<T>, _msg: &str) -> T {
    #[cfg(debug_assertions)]
    {
        opt.expect(_msg)
    }
    #[cfg(not(debug_assertions))]
    {
        opt.unwrap_unchecked()
    }
}