nopanick

Crates.ionopanick
lib.rsnopanick
version0.2.0
sourcesrc
created_at2023-01-30 01:32:47.748924
updated_at2023-11-11 09:58:31.766445
descriptionNo panic library for add, sub, mul, div operators in Rust
homepagehttps://gitlab.com/hwoy/nopanick-rs
repository
max_upload_size
id771333
size12,333
Watthanachai Dueanklang (hwoy)

documentation

https://docs.rs/nopanick

README

nopanick-rs (No Panic!)

No panic library for add, sub, mul, div operators in Rust.

example

use nopanick::*;

fn main() {
    unsafe {
        println!("{}", div!(sub!(add!(100i32, 10i32), 5i32), 5i32));
    }
}

Building

Release only for optimization effect:

cargo build --release

Contact me

Commit count: 0

cargo fmt