Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
benches/ | 25-Apr-2025 | - | 763 | 603 | ||
src/ | 25-Apr-2025 | - | 1,858 | 1,171 | ||
tests/ | 25-Apr-2025 | - | 374 | 317 | ||
.cargo-checksum.json | D | 25-Apr-2025 | 1.2 KiB | 1 | 1 | |
Android.bp | D | 25-Apr-2025 | 2.5 KiB | 112 | 104 | |
Cargo.toml | D | 25-Apr-2025 | 1.2 KiB | 52 | 46 | |
LICENSE | D | 25-Apr-2025 | 10.6 KiB | 202 | 169 | |
LICENSE-APACHE | D | 25-Apr-2025 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | D | 25-Apr-2025 | 1 KiB | 26 | 22 | |
METADATA | D | 25-Apr-2025 | 384 | 18 | 17 | |
MODULE_LICENSE_APACHE2 | D | 25-Apr-2025 | 0 | |||
README.md | D | 25-Apr-2025 | 1.7 KiB | 65 | 42 | |
RELEASES.md | D | 25-Apr-2025 | 3.6 KiB | 113 | 69 | |
TEST_MAPPING | D | 25-Apr-2025 | 832 | 43 | 42 | |
build.rs | D | 25-Apr-2025 | 372 | 14 | 8 | |
cargo_embargo.json | D | 25-Apr-2025 | 337 | 22 | 21 | |
rules.mk | D | 25-Apr-2025 | 525 | 19 | 11 |
README.md
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 12Add this to your `Cargo.toml`: 13 14```toml 15[dependencies] 16num-integer = "0.1" 17``` 18 19and this to your crate root: 20 21```rust 22extern crate num_integer; 23``` 24 25## Features 26 27This crate can be used without the standard library (`#![no_std]`) by disabling 28the default `std` feature. Use this in `Cargo.toml`: 29 30```toml 31[dependencies.num-integer] 32version = "0.1.36" 33default-features = false 34``` 35 36There is no functional difference with and without `std` at this time, but 37there may be in the future. 38 39Implementations for `i128` and `u128` are only available with Rust 1.26 and 40later. The build script automatically detects this, but you can make it 41mandatory by enabling the `i128` crate feature. 42 43## Releases 44 45Release notes are available in [RELEASES.md](RELEASES.md). 46 47## Compatibility 48 49The `num-integer` crate is tested for rustc 1.8 and greater. 50 51## License 52 53Licensed under either of 54 55 * [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) 56 * [MIT license](http://opensource.org/licenses/MIT) 57 58at your option. 59 60### Contribution 61 62Unless you explicitly state otherwise, any contribution intentionally submitted 63for inclusion in the work by you, as defined in the Apache-2.0 license, shall be 64dual licensed as above, without any additional terms or conditions. 65