Skip to content

Commit 468a28d

Browse files
committed
Merge #20
20: Note a few alternative crates in README.md r=cuviper a=cuviper This presents a table of some common alternatives to this crate which may have better performance. I'm not including any specific performance comparisons, since that will surely vary on different workloads, and will change as each crate evolves. I want to keep this impartial, listing only simple objective facts about each. Corrections welcome! cc crate owners: @Aatch, @doomrobo, @fizyk20, @tspiteri
2 parents 8de5e86 + e65c9f6 commit 468a28d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,22 @@ 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+
| [`ramp`] | Apache-2.0 | nightly | rust and inline assembly |
43+
| [`rug`] | LGPL-3.0+ | 1.18 | bundles [GMP] via [`gmp-mpfr-sys`] |
44+
| [`rust-gmp`] | MIT | stable? | links to [GMP] |
45+
46+
[GMP]: https://gmplib.org/
47+
[`gmp-mpfr-sys`]: https://crates.io/crates/gmp-mpfr-sys
48+
[`rug`]: https://crates.io/crates/rug
49+
[`rust-gmp`]: https://crates.io/crates/rust-gmp
50+
[`ramp`]: https://crates.io/crates/ramp

0 commit comments

Comments
 (0)