#integer-arithmetic #numeric

no-std num-integer

Integer traits and functions

15 releases

0.1.46 Feb 8, 2024
0.1.45 Apr 29, 2022
0.1.44 Oct 29, 2020
0.1.43 Jun 12, 2020
0.1.32 Apr 14, 2016

#4 in Math

Download history 1695119/week @ 2024-08-15 1735874/week @ 2024-08-22 1622422/week @ 2024-08-29 1853971/week @ 2024-09-05 1672679/week @ 2024-09-12 1794441/week @ 2024-09-19 1930290/week @ 2024-09-26 2345907/week @ 2024-10-03 2274780/week @ 2024-10-10 2516427/week @ 2024-10-17 1893342/week @ 2024-10-24 1793370/week @ 2024-10-31 1813862/week @ 2024-11-07 1862841/week @ 2024-11-14 1804587/week @ 2024-11-21 1661814/week @ 2024-11-28

7,480,922 downloads per month
Used in 19,815 crates (414 directly)

MIT/Apache

62KB
1K SLoC

num-integer

crate documentation minimum rustc 1.31 build status

Integer trait and functions for Rust.

Usage

Add this to your Cargo.toml:

[dependencies]
num-integer = "0.1"

Features

This crate can be used without the standard library (#![no_std]) by disabling the default std feature. Use this in Cargo.toml:

[dependencies.num-integer]
version = "0.1.36"
default-features = false

There is no functional difference with and without std at this time, but there may be in the future.

Releases

Release notes are available in RELEASES.md.

Compatibility

The num-integer crate is tested for rustc 1.31 and greater.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~150KB