All user-visible changes to this library will be documented in this file. This project adheres to Semantic Versioning, as described for Rust libraries in RFC #1105
- Replace
decimal::Category
withcore::num::FpCategory
.
- Micro-optimizations in rounding.
- Make
.from_parts()
constructor public (Way to directly create decimals with scale without dividing? #3).
- Implement
TryFrom<Decimal>
forUnsignedDecimal
andFrom<UnsignedDecimal>
forDecimal
traits.
- Fixed minor issues with ceil/floor rounding.
- Fixed a performance issue with parsing and rescaling during arithmetic operations.
- Replace
ilog10
method for integers with faster algorithm. - Replace
x 10
multiplication with a faster algorithm (const static lookup table). - Some performance improvements.
- Division by divisor with non-scalable coefficient.
- More strict
#[repr]
for Decimal type. - Documentation improvements.
- Implement
num_traits::float::FloatCore
trait. - Add
MIN_POSITIVE
andEPSILON
constants. - Add
.powi()
,.recip()
,.to_degrees()
,.to_radians()
methods.
- Documentation improvements.
- Add basic mathematical constants (
PI
,E
, etc.). - Implement
num_traits::FloatConst
trait.
- cargo test failing two tests on macOS #2
The main goals of this release are:
- Stabilize API for more stringent compliance with the recommendations of IEEE 754 and IEEE 854 standards.
- Refactor decimal module and simplify context usage.
- Remove [
Context
] from a most methods argument list and put it into decimal control block for better context handling. Now [Context
] is a property of any Decimal number instance.
- Extend test coverage.
- Documentation improvements.
- Deprecate and replace some outdated methods to align with the updated structure and functionality.
- Benchmarks were modularized into separate operations, enhancing clarity and maintainability.
- Extend test coverage.
sqlx
support forPostgreSQL
.
- Minor documentation fixes.
- Remove
const_str
dependency.
- Added
signals!
macro. - Extend test coverage.
- Deprecated
with_scale!
in favor ofquantum!
. - Documentation improvements.
- Minor fixes.
- Internal decimal representation for signed and unsigned decimal types.
- Reduce exponent from
64
bit to16
bit. - Remove
DecimalResult
and unwrap methods. - Replace
ArithmeticPolicy
,OverflowPolicy
,RoundingPolicy
withContext
.
- Add
NaN
and±Infinity
special values. - Add
Flags
andSignal
. - Add
Context
andSignalingTraps
. - Add
with_context!
macro.
- Fix panic shift with overflow.
- Stabilize API.
- Re-implement most methods.
- Documentation improvements.
- Fix rounding subtraction.
- Extend test coverage for
numtraits
feature. - Documentation improvements.
- Stabilize API
- Stabilize API
- Bump
utoipa
to 5.0.x version
- Stabilize API
- Improve docs
- Stabilize API
- Technical releases
- Initial commit