i256 0.2.0

Optimized implementations of 256-bit signed and unsigned integers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(clippy::disallowed_macros)]

#[allow(arithmetic_overflow)]
fn overflow() {
    let _ = 255_u8 + 1;
}

fn main() {
    // NOTE: although it's less than ideal, we also use debug_assertions
    // since there is no stable way to check if there's overflow checks.
    if std::panic::catch_unwind(overflow).is_err() {
        println!("cargo:rustc-cfg=have_overflow_checks");
    }
}