orengine 0.7.0-alpha.1

Optimized ring engine for Rust. It is a lighter and faster asynchronous library than tokio-rs, async-std, may, and even smol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Do the same as [`assert_unchecked`](std::hint::assert_unchecked), but instead of UB, it panics.
#[inline(always)]
#[allow(unused_variables, reason = "It contains #[cfg(debug_assertions)]")]
pub(crate) fn assert_hint(cond: bool, debug_msg: &str) {
    #[cfg(debug_assertions)]
    {
        assert!(cond, "{}", debug_msg);
    }

    #[cfg(not(debug_assertions))]
    unsafe {
        std::hint::assert_unchecked(cond)
    };
}