#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

#12 in Math

Download history 1267538/week @ 2024-01-03 1316775/week @ 2024-01-10 1413565/week @ 2024-01-17 1379301/week @ 2024-01-24 1390304/week @ 2024-01-31 1451184/week @ 2024-02-07 1453556/week @ 2024-02-14 1560607/week @ 2024-02-21 1556511/week @ 2024-02-28 1554034/week @ 2024-03-06 1525454/week @ 2024-03-13 1593038/week @ 2024-03-20 1505914/week @ 2024-03-27 1643395/week @ 2024-04-03 1601267/week @ 2024-04-10 1304204/week @ 2024-04-17

6,354,813 downloads per month
Used in 16,327 crates (367 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

~155KB