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 2024Releases
latest 10-
1.2.103 Jun 2024Nothing published for this version
-
1.2.027 Feb 2024Release notes
Open source →Added
- Added
reduce_mod,add_mod,mul_mod,pow_mod. - Added
num-bigintandark-ffsupport. - Made
algorithmspublic, but with unstable API for now.
Changed
- Marked
Uint::as_limbs_mutas unsafe. - Unified
mulimplementations and move toalgorithms.
Fixed
uint!macro incorrectly accepting hex digits in decimal.
- Added
-
1.1.025 Jul 2023Release notes
Open source →Added
- Added
saturating_shl. - Added
approx_log,approx_log2,approx_log10forf64log approximations. - Added
approx_pow2to construct fromf64log2 approximation. - Added
rootcomputing integer roots.
Changed
- Made logarithms
usizeto matchBITSinpow,logfunctions. - Applied
track_callerto div/rem ops to track div-by-zero easier.
- Added
-
1.0.201 Nov 2022Nothing published for this version
-
1.0.124 Oct 2022Nothing published for this version
-
1.0.004 Jun 2022Release notes
Open source →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_twoandnext_multiple_offunctions. - Added
checked_from_limb_sliceandfrom_uint.
Changed
from_limb_slicenow handles arbitrary length slices.
-
0.2.118 May 2022Release notes
Open source →Added
- Extensive Postgres ToSql support supporting many column types.
TryFrom<Uint>for primitive integer types.- Added
Fromconversions tof32andf64. - Implement all rust formatting:
Debug,Display, decimal, hex, etc. >>=operator.to_base_leandto_base_lebase conversion spigotsreverse_bits,most_sigificant_bitsbit 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.
-
0.2.017 May 2022Release notes
Open source →Added
- Changelog
- CI test on stable Rust.
- Common bit-size aliases and nightly-only
Uint<BITS>alias. - Added
to_{be/le}_bytes_vecand madetry_from_le_byte_iterpublic. - Added
rlpandfastrlpsupport. - Added
into_limbs,leading_zeros,bit_len,byte_len,checked_log2. - Added
primitive-typessupport.
Changed
- Changed to
Uint<BITS, LIMBS>to get stable compatibility! - Added generic
BYTESparameter toto_{be/le}_bytes. - Renamed
try_from_{be/le}_slice.
-
0.1.115 May 2022Nothing published for this version
-
0.1.015 May 2022Release notes
Open source →Added
- Const-generic
Uintstructure. - Basic
overflowing_addimplementation. - Algorithms for division and gcd (currently unused).
uint!andconst_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 -->
- Const-generic