#bignum #cryptography #gmp #num-bigint #converter

rust-bigint

Common traits and methods for multiple BigInt implementations

2 stable releases

1.2.0 Sep 16, 2021
1.1.0 Sep 21, 2020

#1258 in Algorithms

Download history 2227/week @ 2024-12-17 875/week @ 2024-12-24 1254/week @ 2024-12-31 1192/week @ 2025-01-07 2645/week @ 2025-01-14 2818/week @ 2025-01-21 1364/week @ 2025-01-28 2295/week @ 2025-02-04 2630/week @ 2025-02-11 442/week @ 2025-02-18 341/week @ 2025-02-25 350/week @ 2025-03-04 358/week @ 2025-03-11 569/week @ 2025-03-18 712/week @ 2025-03-25 628/week @ 2025-04-01

2,319 downloads per month
Used in 9 crates (5 directly)

MIT license

32KB
779 lines

rust-bigint

Provides traits for common functionality across several Rust BigInt implementations

Example interaction:

// import BigInt from this library. use a feature flag to select the BigInt you need
// also, pull one or more traits from this library into scope
use rust_bigint::BigInt;
use rust_bigint::traits::Converter;
 
let number = BigInt::from(42);
// now use one of the methods exposed by the converter trait
let hex_str = number.to_hex();

See the traits for more examples.

Dependencies

~0.4–1.3MB
~27K SLoC