2 releases

Uses old Rust 2015

0.5.1 Mar 26, 2021
0.5.0 Jun 7, 2020

#1588 in Math

Download history 3059/week @ 2024-11-15 2381/week @ 2024-11-22 2707/week @ 2024-11-29 2337/week @ 2024-12-06 3018/week @ 2024-12-13 1336/week @ 2024-12-20 1394/week @ 2024-12-27 1656/week @ 2025-01-03 2911/week @ 2025-01-10 3210/week @ 2025-01-17 2274/week @ 2025-01-24 1930/week @ 2025-01-31 3904/week @ 2025-02-07 1120/week @ 2025-02-14 635/week @ 2025-02-21 730/week @ 2025-02-28

6,655 downloads per month
Used in 22 crates (6 directly)

MIT license

82KB
2.5K SLoC

Build Status

Documentation

The following functions are intentionally left out of the bindings:

  • gmp_randinit (not thread-safe, obsolete)
  • mpz_random (not thread-safe, obsolete)
  • mpz_random2 (not thread-safe, obsolete)
  • mpf_set_default_prec (not thread-safe)
  • mpf_get_default_prec (not thread-safe)
  • mpf_init (not thread-safe)
  • mpf_inits (not thread-safe, va_list wrapper)
  • mpf_clears (va_list wrapper)
  • mpf_swap (no better than rust's swap)
  • mpf_set_prec_raw (could be exposed with an unsafe function if needed)
  • mpz_inits (va_list wrapper)
  • mpz_clears (va_list wrapper)
  • mpz_swap (no better than rust's swap)
  • mpq_inits (va_list wrapper)
  • mpq_clears (va_list wrapper)
  • mpq_swap (no better than rust's swap)

Dependencies

~92–350KB