13 unstable releases (3 breaking)

Uses old Rust 2015

0.5.0 May 27, 2017
0.4.0 Dec 30, 2016
0.3.2 Aug 8, 2016
0.3.1 Apr 20, 2016
0.2.3 Jul 6, 2015

#2160 in Math

Download history 111/week @ 2024-11-22 106/week @ 2024-11-29 159/week @ 2024-12-06 187/week @ 2024-12-13 64/week @ 2024-12-20 22/week @ 2024-12-27 113/week @ 2025-01-03 147/week @ 2025-01-10 151/week @ 2025-01-17 104/week @ 2025-01-24 343/week @ 2025-01-31 441/week @ 2025-02-07 217/week @ 2025-02-14 333/week @ 2025-02-21 237/week @ 2025-02-28 140/week @ 2025-03-07

978 downloads per month
Used in 9 crates (8 directly)

MIT license

78KB
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

~280KB