Skip to content

Commit 3abecf3

Browse files
committed
note a few alternative crates
1 parent 8de5e86 commit 3abecf3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,23 @@ Release notes are available in [RELEASES.md](RELEASES.md).
2929
## Compatibility
3030

3131
The `num-bigint` crate is tested for rustc 1.8 and greater.
32+
33+
## Alternatives
34+
35+
While `num-bigint` strives for good performance in pure Rust code, other
36+
crates may offer better performance with different trade-offs. The following
37+
table offers a brief comparison to a few alternatives.
38+
39+
| Crate | License | Min rustc | Implementation |
40+
| :--------------- | :------------- | :-------- | :------------- |
41+
| **`num-bigint`** | MIT/Apache-2.0 | 1.8 | pure rust |
42+
| [`gmp-mpfr-sys`] | LGPL-3.0+ | 1.13 | unsafe bindings for [GMP] |
43+
| [`ramp`] | Apache-2.0 | nightly | rust and inline assembly |
44+
| [`rug`] | LGPL-3.0+ | 1.18 | safe interface using `gmp-mpfr-sys` |
45+
| [`rust-gmp`] | MIT | stable? | safe bindings for [GMP] |
46+
47+
[GMP]: https://gmplib.org/
48+
[`gmp-mpfr-sys`]: https://crates.io/crates/gmp-mpfr-sys
49+
[`rug`]: https://crates.io/crates/rug
50+
[`rust-gmp`]: https://crates.io/crates/rust-gmp
51+
[`ramp`]: https://crates.io/crates/ramp

0 commit comments

Comments
 (0)