22
33[ ![ crate] ( https://img.shields.io/crates/v/num-bigint.svg )] ( https://crates.io/crates/num-bigint )
44[ ![ documentation] ( https://docs.rs/num-bigint/badge.svg )] ( https://docs.rs/num-bigint )
5- ![ minimum rustc 1.15 ] ( https://img.shields.io/badge/rustc-1.15 +-red.svg )
5+ ![ minimum rustc 1.31 ] ( https://img.shields.io/badge/rustc-1.31 +-red.svg )
66[ ![ Travis status] ( https://travis-ci.org/rust-num/num-bigint.svg?branch=master )] ( https://travis-ci.org/rust-num/num-bigint )
77
88Big integer types for Rust, ` BigInt ` and ` BigUint ` .
@@ -13,7 +13,7 @@ Add this to your `Cargo.toml`:
1313
1414``` toml
1515[dependencies ]
16- num-bigint = " 0.2 "
16+ num-bigint = " 0.3 "
1717```
1818
1919and this to your crate root:
@@ -29,30 +29,26 @@ The `std` crate feature is enabled by default, and is mandatory before Rust
2929` default-features = false ` , you must manually enable the ` std ` feature yourself
3030if your compiler is not new enough.
3131
32- Implementations for ` i128 ` and ` u128 ` are only available with Rust 1.26 and
33- later. The build script automatically detects this, but you can make it
34- mandatory by enabling the ` i128 ` crate feature.
35-
3632### Random Generation
3733
3834` num-bigint ` supports the generation of random big integers when the ` rand `
3935feature is enabled. To enable it include rand as
4036
4137``` toml
42- rand = " 0.5 "
43- num-bigint = { version = " 0.2 " , features = [" rand" ] }
38+ rand = " 0.7 "
39+ num-bigint = { version = " 0.3 " , features = [" rand" ] }
4440```
4541
4642Note that you must use the version of ` rand ` that ` num-bigint ` is compatible
47- with: ` 0.5 ` .
43+ with: ` 0.7 ` .
4844
4945## Releases
5046
5147Release notes are available in [ RELEASES.md] ( RELEASES.md ) .
5248
5349## Compatibility
5450
55- The ` num-bigint ` crate is tested for rustc 1.15 and greater.
51+ The ` num-bigint ` crate is tested for rustc 1.31 and greater.
5652
5753## Alternatives
5854
@@ -62,7 +58,7 @@ table offers a brief comparison to a few alternatives.
6258
6359| Crate | License | Min rustc | Implementation |
6460| :--------------- | :------------- | :-------- | :------------- |
65- | ** ` num-bigint ` ** | MIT/Apache-2.0 | 1.15 | pure rust |
61+ | ** ` num-bigint ` ** | MIT/Apache-2.0 | 1.31 | pure rust |
6662| [ ` ramp ` ] | Apache-2.0 | nightly | rust and inline assembly |
6763| [ ` rug ` ] | LGPL-3.0+ | 1.31 | bundles [ GMP] via [ ` gmp-mpfr-sys ` ] |
6864| [ ` rust-gmp ` ] | MIT | stable? | links to [ GMP] |
0 commit comments