2 releases

Uses old Rust 2015

0.5.1 Mar 26, 2021
0.5.0 Jun 7, 2020

#1571 in Math

Download history 1241/week @ 2024-10-03 1693/week @ 2024-10-10 1387/week @ 2024-10-17 1026/week @ 2024-10-24 1425/week @ 2024-10-31 2618/week @ 2024-11-07 3094/week @ 2024-11-14 2750/week @ 2024-11-21 2629/week @ 2024-11-28 2223/week @ 2024-12-05 2675/week @ 2024-12-12 2118/week @ 2024-12-19 1098/week @ 2024-12-26 1818/week @ 2025-01-02 2600/week @ 2025-01-09 3050/week @ 2025-01-16

8,596 downloads per month
Used in 23 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

~93–350KB