| 1 | # num-integer |
| 2 | |
| 3 | [](https://crates.io/crates/num-integer) |
| 4 | [](https://docs.rs/num-integer) |
| 5 | [](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) |
| 6 | [](https://github.com/rust-num/num-integer/actions) |
| 7 | |
| 8 | `Integer` trait and functions for Rust. |
| 9 | |
| 10 | ## Usage |
| 11 | |
| 12 | Add this to your `Cargo.toml`: |
| 13 | |
| 14 | ```toml |
| 15 | [dependencies] |
| 16 | num-integer = "0.1" |
| 17 | ``` |
| 18 | |
| 19 | ## Features |
| 20 | |
| 21 | This crate can be used without the standard library (`#![no_std]`) by disabling |
| 22 | the default `std` feature. Use this in `Cargo.toml`: |
| 23 | |
| 24 | ```toml |
| 25 | [dependencies.num-integer] |
| 26 | version = "0.1.36" |
| 27 | default-features = false |
| 28 | ``` |
| 29 | |
| 30 | There is no functional difference with and without `std` at this time, but |
| 31 | there may be in the future. |
| 32 | |
| 33 | ## Releases |
| 34 | |
| 35 | Release notes are available in [RELEASES.md](RELEASES.md). |
| 36 | |
| 37 | ## Compatibility |
| 38 | |
| 39 | The `num-integer` crate is tested for rustc 1.31 and greater. |
| 40 | |
| 41 | ## License |
| 42 | |
| 43 | Licensed under either of |
| 44 | |
| 45 | * [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) |
| 46 | * [MIT license](http://opensource.org/licenses/MIT) |
| 47 | |
| 48 | at your option. |
| 49 | |
| 50 | ### Contribution |
| 51 | |
| 52 | Unless you explicitly state otherwise, any contribution intentionally submitted |
| 53 | for inclusion in the work by you, as defined in the Apache-2.0 license, shall be |
| 54 | dual licensed as above, without any additional terms or conditions. |