7 releases

Uses new Rust 2024

0.1.6 Jul 3, 2025
0.1.5 Jun 27, 2025

#570 in Hardware support

Download history 139/week @ 2025-06-11 334/week @ 2025-06-18 512/week @ 2025-06-25 214/week @ 2025-07-02 37/week @ 2025-07-09

1,100 downloads per month
Used in 11 crates (8 directly)

MIT license

12KB
79 lines

Utilities for working with non-zero integers.

Currently this implements a shorthand macro for creating non-zero integers from literals at compile time:

use std::num::NonZero;
use new_zealand::nz;

fn foo(x: NonZero<u32>) { println!("NonZero value: {x}"); }

foo(nz!(42));

More details in the package documentation.

This is part of the Folo project that provides mechanisms for high-performance hardware-aware programming in Rust.

No runtime deps