#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 1556787/week @ 2024-06-30 1793188/week @ 2024-07-07 1699880/week @ 2024-07-14 1730221/week @ 2024-07-21 1696828/week @ 2024-07-28 1731654/week @ 2024-08-04 1774745/week @ 2024-08-11 1749911/week @ 2024-08-18 1723257/week @ 2024-08-25 1743456/week @ 2024-09-01 1734568/week @ 2024-09-08 1619905/week @ 2024-09-15 1873262/week @ 2024-09-22 2026748/week @ 2024-09-29 2484545/week @ 2024-10-06 2423850/week @ 2024-10-13

8,947,455 downloads per month
Used in 19,105 crates (410 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