- Consider negative values in saturating add / sub
impl TryFrom<UInt> for iN
for N = [8, 16, 32]impl TryFrom<Int> for uN
for N = [8, 16, 32]- Fix lax_deserialize accepting NaN
- Support deserializing floats without fractional component
- Add
usize
andisize
TryFrom
implementations
- Update crate metadata
- Bump MSRV to 1.35
- Drop support for the
rocket_04
Cargo feature (Rocket 0.4FromFormValue
/FromParam
implementations)
- Add a new Cargo feature:
lax_deserialize
- See the crate documentation or README.md for what it does.
- Update the documentation to use the macros introduced in 0.1.6.
- Fix building without the
std
feature
- Introduce
int!
anduint!
macros as shorthand forInt::from(Ni32)
andUInt::from(Nu32)
- Introduce
Int::MIN
,Int::MAX
,UInt::MIN
,UInt::MAX
and deprecateconst fn min_value
andconst fn max_value
s.
- Allow deserialization of
Int
s andUInt
s from non-self-describing formats
- Add conversions to / from 128 bit integer types
- Implement
std::iter::Sum
andstd::iter::Product
forInt
andUInt
- Mention JavaScript's propsed BigInt type in documentation
- Add doctests for every inherent method of
Int
andUInt
- Fix buggy implementation of
Int::saturating_mul
- Add (optional) implementations of
rocket::{FromFormValue, FromParam}
(for rocket 0.4)
Initial release containing the Int
and UInt
types, serde
support and many of the methods that
std
's integer types provide.