Crates.io | nopanick |
lib.rs | nopanick |
version | 0.2.0 |
source | src |
created_at | 2023-01-30 01:32:47.748924 |
updated_at | 2023-11-11 09:58:31.766445 |
description | No panic library for add, sub, mul, div operators in Rust |
homepage | https://gitlab.com/hwoy/nopanick-rs |
repository | |
max_upload_size | |
id | 771333 |
size | 12,333 |
No panic library for add, sub, mul, div operators in Rust.
use nopanick::*;
fn main() {
unsafe {
println!("{}", div!(sub!(add!(100i32, 10i32), 5i32), 5i32));
}
}
Release only for optimization effect:
cargo build --release