PackageTrack
Sign in Get early access

ruint-macro

The `uint!` macro for `Uint` and `Bits` literals

1.2.1 24M downloads/mo #1900 most downloaded on crates.io recmo/uint

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Ships fairly regularly

a new release about every 5 months

Most releases are documented

notes for 6 of 10 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

10 releases · first in 2022

0 releases in the last 12 months

see the full history below

Release timeline

10 releases · May 2022 to Jun 2024
2023 2024 2025 2026
Release Pre-release

Releases

latest 10
  1. 1.2.1 03 Jun 2024

    Nothing published for this version

  2. 1.2.0 27 Feb 2024
    Release notes

    Added

    • Added reduce_mod, add_mod, mul_mod, pow_mod.
    • Added num-bigint and ark-ff support.
    • Made algorithms public, but with unstable API for now.

    Changed

    • Marked Uint::as_limbs_mut as unsafe.
    • Unified mul implementations and move to algorithms.

    Fixed

    • uint! macro incorrectly accepting hex digits in decimal.
    Open source →
  3. 1.1.0 25 Jul 2023
    Release notes

    Added

    • Added saturating_shl.
    • Added approx_log, approx_log2, approx_log10 for f64 log approximations.
    • Added approx_pow2 to construct from f64 log2 approximation.
    • Added root computing integer roots.

    Changed

    • Made logarithms usize to match BITS in pow, log functions.
    • Applied track_caller to div/rem ops to track div-by-zero easier.
    Open source →
  4. 1.0.2 01 Nov 2022

    Nothing published for this version

  5. 1.0.1 24 Oct 2022

    Nothing published for this version

  6. 1.0.0 04 Jun 2022
    Release notes

    Added

    • Added comparison.
    • Added add, sub, neg and sum functions.
    • Added mul functions.
    • Added division and remainder functions.
    • Added pow and log functions.
    • Added next_power_of_two and next_multiple_of functions.
    • Added checked_from_limb_slice and from_uint.

    Changed

    • from_limb_slice now handles arbitrary length slices.
    Open source →
  7. 0.2.1 18 May 2022
    Release notes

    Added

    • Extensive Postgres ToSql support supporting many column types.
    • TryFrom<Uint> for primitive integer types.
    • Added From conversions to f32 and f64.
    • Implement all rust formatting: Debug, Display, decimal, hex, etc.
    • >>= operator.
    • to_base_le and to_base_le base conversion spigots
    • reverse_bits, most_sigificant_bits bit methods.
    • Optimized as_le_{slice,bytes)_* accessors.

    Changed

    • Rewrote to_{be,le}_bytes_* to use optimized methods. This has trickle-down effects for a lot of conversions and formatting.
    Open source →
  8. 0.2.0 17 May 2022
    Release notes

    Added

    • Changelog
    • CI test on stable Rust.
    • Common bit-size aliases and nightly-only Uint<BITS> alias.
    • Added to_{be/le}_bytes_vec and made try_from_le_byte_iter public.
    • Added rlp and fastrlp support.
    • Added into_limbs, leading_zeros, bit_len, byte_len, checked_log2.
    • Added primitive-types support.

    Changed

    • Changed to Uint<BITS, LIMBS> to get stable compatibility!
    • Added generic BYTES parameter to to_{be/le}_bytes.
    • Renamed try_from_{be/le}_slice.
    Open source →
  9. 0.1.1 15 May 2022

    Nothing published for this version

  10. 0.1.0 15 May 2022
    Release notes

    Added

    • Const-generic Uint structure.
    • Basic overflowing_add implementation.
    • Algorithms for division and gcd (currently unused).
    • uint! and const_for! macros.
    • Documentation with examples.
    • Support for rand, arbitrary, quickcheck, proptest, serde
    • Github actions for linting, testing, code coverage, cargo-audit.
    • Pushed to crates.io.

    <!-- links to version -->

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive