17 releases (5 breaking)

new 0.6.1 Jan 19, 2025
0.6.0 Jan 16, 2025
0.5.0 Dec 24, 2024
0.4.1 Dec 17, 2024
0.1.2 Nov 30, 2024

#449 in Algorithms

Download history 104/week @ 2024-11-10 25/week @ 2024-11-17 139/week @ 2024-11-24 950/week @ 2024-12-01 232/week @ 2024-12-08 147/week @ 2024-12-15 136/week @ 2024-12-22 4/week @ 2024-12-29 1/week @ 2025-01-05 97/week @ 2025-01-12

245 downloads per month

Apache-2.0 OR MIT

455KB
10K SLoC

Test Static Analysis github docs.rs Crates.io License MSRV crates.io

arbi

arbi implements an Arbitrary Precision Integer type: Arbi.

Features

  • No dependencies by default.

    If you need to generate random arbitrary integers, enable the rand feature, which depends on the rand crate.

  • no_std.

    This crate is no_std and utilizes the alloc crate for dynamic memory allocation.

    Enable the std feature if you need std::error::Error implementations for error types (it is not used for other purposes).

  • forbid(unsafe_code).

    Statically guarantees that crate code does not use unsafe Rust.

  • Pure Rust implementation.

License

This project is dual-licensed under either the Apache License, Version 2.0 or the MIT License, at your option.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you shall be dual-licensed as above, without any additional terms or conditions.

Dependencies