Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 07-Aug-2020 | - | ||||
benches/ | H | 07-Aug-2020 | - | 763 | 603 | |
src/ | H | 07-Aug-2020 | - | 1,815 | 1,138 | |
tests/ | H | 07-Aug-2020 | - | 374 | 317 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
Cargo.toml | H A D | 07-Aug-2020 | 1.2 KiB | 39 | 36 | |
LICENSE-APACHE | H A D | 07-Aug-2020 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 07-Aug-2020 | 1 KiB | 26 | 22 | |
README.md | H A D | 07-Aug-2020 | 1.3 KiB | 51 | 33 | |
RELEASES.md | H A D | 07-Aug-2020 | 2.7 KiB | 89 | 53 | |
build.rs | H A D | 07-Aug-2020 | 312 | 15 | 11 |
README.md
1# num-integer 2 3[![crate](https://img.shields.io/crates/v/num-integer.svg)](https://crates.io/crates/num-integer) 4[![documentation](https://docs.rs/num-integer/badge.svg)](https://docs.rs/num-integer) 5[![minimum rustc 1.8](https://img.shields.io/badge/rustc-1.8+-red.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) 6[![build status](https://github.com/rust-num/num-integer/workflows/master/badge.svg)](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 44## Releases 45 46Release notes are available in [RELEASES.md](RELEASES.md). 47 48## Compatibility 49 50The `num-integer` crate is tested for rustc 1.8 and greater. 51