Registry / utility / rug
library1.29.0rscratesunverified

Arbitrary-precision integers, rational, floating-point and complex numbers based on GMP, MPFR and MPC.

# Cargo.toml [dependencies] rug = "1.29.0"
INSTALL
IMPORT
SIG · RUG
R
rug
utilityrustv1.29.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Integer
use rug::Integer;

Arbitrary-precision integer multiplication.

use rug::Integer; fn main() { let a = Integer::from(123456789); let b = Integer::from(987654321); let product = a * b; println!("Product: {}", product); }
Debug
Known issues
gotchaRequires GMP, MPFR, and MPC libraries to be installed on the system.
fix
Install the required libraries (e.g., libgmp-dev, libmpfr-dev, libmpc-dev on Debian/Ubuntu).
affects: *
Upgrade
Version history
1.29.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rug — cargo add rug · libregistry