2 releases

Uses old Rust 2015

0.5.1 Mar 26, 2021
0.5.0 Jun 7, 2020

#692 in Math

Download history 1476/week @ 2023-11-20 1362/week @ 2023-11-27 1361/week @ 2023-12-04 1009/week @ 2023-12-11 734/week @ 2023-12-18 384/week @ 2023-12-25 816/week @ 2024-01-01 2386/week @ 2024-01-08 2086/week @ 2024-01-15 2183/week @ 2024-01-22 2703/week @ 2024-01-29 3025/week @ 2024-02-05 2881/week @ 2024-02-12 2127/week @ 2024-02-19 3098/week @ 2024-02-26 2402/week @ 2024-03-04

10,617 downloads per month
Used in 22 crates (5 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

~99–375KB