4.3 KiB
4.3 KiB
Changelog
This project follows semantic versioning.
The MSRV (Minimum Supported Rust Version) is 1.37.0, and typenum is tested against this Rust version.
Unreleased
1.15.0 (2021-12-25)
- [fixed] Cross-compilation issue due to doing math in build script. (PR #177)
- [added] New feature
scale_infofor using inside Substrate-based runtimes (PR #175)
1.14.0 (2021-09-01)
- [changed] Sealed all marker traits. Documentation already stated that these should not be implemented outside the crate, so this is not considered a breaking change.
1.13.0 (2021-03-12)
- [changed] MSRV from 1.22.0 to 1.37.0.
- [fixed]
opmacro with 2018 edition import. - [changed] Allowed calling
assert_type_eqandassert_typeat top level. - [added] Marker trait
ZeroforZ0,U0, andB0. - [added] Implementation of
Powtrait for f32 and f64 with negative exponent. - [added] Trait
ToInt.
1.12.0 (2020-04-13)
- [added] Feature
force_unix_path_separatorto support building without Cargo. - [added] Greatest common divisor operator
Gcdwith aliasGcf. - [added]
gcdto theop!macro. - [changed] Added
Copybound toRhsofMul<Rhs>impl for<TArr<V, A>. - [changed] Added
Copybound toRhsofDiv<Rhs>impl for<TArr<V, A>. - [changed] Added
Copybound toRhsofPartialDiv<Rhs>impl for<TArr<V, A>. - [changed] Added
Copybound toRhsofRem<Rhs>impl for<TArr<V, A>. - [fixed] Make all functions #[inline].
1.11.2 (2019-08-26)
- [fixed] Cross compilation from Linux to Windows.
1.11.1 (2019-08-25)
- [fixed] Builds on earlier Rust builds again and added Rust 1.22.0 to Travis to prevent future breakage.
1.11.0 (2019-08-25)
- [added] Integer
log2to theop!macro. - [added] Integer binary logarithm operator
Logarithm2with aliasLog2. - [changed] Removed
feature(i128_type)when running with thei128feature. Kept the feature flag. for typenum to maintain compatibility with old Rust versions. - [added] Integer
sqrtto theop!macro. - [added] Integer square root operator
SquareRootwith aliasSqrt. - [fixed] Bug with attempting to create U1024 type alias twice.
1.10.0 (2018-03-11)
- [added] The
PowerOfTwomarker trait. - [added] Associated constants for
Bit,Unsigned, andInteger.
1.9.0 (2017-05-14)
- [added] The
Abstype operater and correspondingAbsValalias. - [added] The feature
i128that enables creating 128-bit integers from typenums. - [added] The
assert_type!andassert_type_eq!macros. - [added] Operators to the
op!macro, including those performed bycmp!. - [fixed] Bug in
op!macro involving functions and convoluted expressions. - [deprecated] The
cmp!macro.
1.8.0 (2017-04-12)
- [added] The
op!macro for conveniently performing type-level operations. - [added] The
cmp!macro for conveniently performing type-level comparisons. - [added] Some comparison type-operators that are used by the
cmp!macro.
1.7.0 (2017-03-24)
- [added] Type operators
MinandMaxwith accompanying aliasesMinimumandMaximum
1.6.0 (2017-02-24)
- [fixed] Bug in
Arraydivision. - [fixed] Bug where
Remwould sometimes exit early with the wrong answer. - [added]
PartialDivoperator that performs division as a partial function -- it's defined only when there is no remainder.
1.5.2 (2017-02-04)
- [fixed] Bug between
Divimplementation and type system.
1.5.1 (2016-11-08)
- [fixed] Expanded implementation of
Powfor primitives.
1.5.0 (2016-11-03)
- [added] Functions to the
PowandLentraits. This is technically a breaking change, but it would only break someone's code if they have a custom impl forPow. I would be very surprised if that is anyone other than me.
1.4.0 (2016-10-29)
- [added] Type-level arrays of type-level integers. (PR #66)
- [added] The types in this crate are now instantiable. (Issue #67, PR #68)
1.3.1 (2016-03-31)
- [fixed] Bug with recent nightlies.
1.3.0 (2016-02-07)
- [changed] Removed dependency on libstd. (Issue #53, PR #55)
- [changed] Reorganized module structure. (PR #57)
1.2.0 (2016-01-03)
- [added] This change log!
- [added] Convenience type aliases for operators. (Issue #48, PR #50)
- [added] Types in this crate now derive all possible traits. (Issue #42, PR #51)