uutils / coreutils

Cross-platform Rust rewrite of the GNU coreutils
https://uutils.github.io/
MIT License
17.23k stars 1.24k forks source link

chore(deps): update rust crate bigdecimal to v0.4.5 #6473

Closed renovate[bot] closed 2 weeks ago

renovate[bot] commented 2 weeks ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
bigdecimal workspace.dependencies patch 0.4.2 -> 0.4.5

Release Notes

akubera/bigdecimal-rs (bigdecimal) ### [`v0.4.5`](https://togithub.com/akubera/bigdecimal-rs/compare/v0.4.4...v0.4.5) [Compare Source](https://togithub.com/akubera/bigdecimal-rs/compare/v0.4.4...v0.4.5) ### [`v0.4.4`](https://togithub.com/akubera/bigdecimal-rs/releases/tag/v0.4.4) [Compare Source](https://togithub.com/akubera/bigdecimal-rs/compare/v0.4.3...v0.4.4) ### Changes - Revert formatting semantics to match Rust's meanings rather than Python's - The meaning of the formatting string `"{:.4}"` has returned to "4 digits after decimal place" rather than "four digits of precision" - Add new compile-time parameters for safer formatting - Configurable thresholds prevent printing out full decimal form of large numbers, like [`1e99999`](https://togithub.com/akubera/bigdecimal-rs/commit/1e999999999999999) (could be used in) - Improved JSON serialization / formatting routines > \[!NOTE] > Please add your own tests to ensure this library formats (and continues to format) numbers as you expect - Added methods - `BigDecimalRef::clone_into` - `BigDecimal::set_scale` (mutable version of `take_and_scale`) - Optimized bigdecimal comparison algorithms - Restricted versions of num-\* crates to respect Minimum Supported Rust Version (1.43) - I may raise this up soon ### [`v0.4.3`](https://togithub.com/akubera/bigdecimal-rs/releases/tag/v0.4.3) [Compare Source](https://togithub.com/akubera/bigdecimal-rs/compare/v0.4.2...v0.4.3) - Use exponential formatting (scientific-notation) if number of leading zeros is greater than 5 - so `1234e-304` is formatted as `1.234e-301` rather than `0.00.....{300-zeros)....00123` - Fixes "out of memory errors" when massive amounts of zeros would have been printed - Add methods for printing using scientific-notation & engineering-notation - Add derived Clone trait to ParseBigDecimalError - Preserve scale when adding zero - Mimics Python's Decimal behavior: ```python >>> Decimal("1.2") + Decimal("0.00000") Decimal('1.20000') ``` - Minor optimizations removing unnecessary clones in addition and multiplication

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

cakebaker commented 2 weeks ago

The issues are related to https://github.com/akubera/bigdecimal-rs/issues/128 and the restriction of the versions of the num-* dependencies in https://github.com/akubera/bigdecimal-rs/commit/d2779525ca0f0a1ad7cf239cc5e153d15af30c76