Zero allocation big integer library for no_std
Rust, borrowing heavily in terms of code and algorithms from num-bigint
.
Honestly, you're probably much better off using num-bigint
. Only use this library if you absolutely need to be zero allocation because it just doesn't have the same breadth of functionality nor the extensive testing of num-bigint
.
Quite the pep talk, I know.
-
Basic operations
- Addition
- Subtraction
- Multiplication
- Division/Remainder
- Power
-
fmt::Display
-
Modulo operations
-
Signed operations
-
Documentation
- Document required buffer and slice sizes
Issues and PRs very welcome :)
Distributed under the same license as num-bigint
, Apache 2.0/MIT.