The gmp-mpfr-sys crate provides Rust FFI bindings to the following GNU arbitrary-precision libraries:
If you want a high-level API, consider using Rug, a crate which provides integers and floating-point numbers with arbitrary precision and correct rounding:
Integer
is a bignum integer with arbitrary precision.Rational
is a bignum rational number with arbitrary precision.Float
is a multi-precision floating-point number with correct rounding.Complex
is a multi-precision complex number with correct rounding.Here you can find the documentation for the current development version of the crate.