Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 16, 2024

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

Compare Source

v0.4.4

Compare Source

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 (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

Compare Source

  • 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:
      >>> 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.


  • If you want to rebase/retry this PR, check this box

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

@cakebaker
Copy link
Contributor

The issues are related to akubera/bigdecimal-rs#128 and the restriction of the versions of the num-* dependencies in akubera/bigdecimal-rs@d277952

@renovate renovate bot force-pushed the renovate/bigdecimal-0.x-lockfile branch from 8eae87c to 8dffc79 Compare June 17, 2024 08:21
@renovate renovate bot changed the title chore(deps): update rust crate bigdecimal to v0.4.4 chore(deps): update rust crate bigdecimal to v0.4.5 Jun 17, 2024
@cakebaker cakebaker merged commit 80c6b14 into main Jun 17, 2024
67 of 68 checks passed
@cakebaker cakebaker deleted the renovate/bigdecimal-0.x-lockfile branch June 17, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant