#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

#3 in Math

Download history 1694134/week @ 2024-07-29 1734583/week @ 2024-08-05 1783197/week @ 2024-08-12 1746517/week @ 2024-08-19 1720890/week @ 2024-08-26 1743805/week @ 2024-09-02 1732260/week @ 2024-09-09 1694129/week @ 2024-09-16 1810081/week @ 2024-09-23 2125241/week @ 2024-09-30 2513355/week @ 2024-10-07 2460360/week @ 2024-10-14 2030500/week @ 2024-10-21 1803309/week @ 2024-10-28 1841669/week @ 2024-11-04 1839845/week @ 2024-11-11

7,780,046 downloads per month
Used in 19,535 crates (412 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