Skip to content

Chore: Remove rust_decimal dependency and simplify rounding function#1047

Merged
shm11C3 merged 3 commits into
developfrom
chore/remove-decimal
Jan 24, 2026
Merged

Chore: Remove rust_decimal dependency and simplify rounding function#1047
shm11C3 merged 3 commits into
developfrom
chore/remove-decimal

Conversation

@shm11C3

@shm11C3 shm11C3 commented Jan 21, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 21, 2026 18:55
@github-actions github-actions Bot added rust Pull requests that update Rust code configuration labels Jan 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the rust_decimal dependency and replaces it with a simpler native floating-point implementation for the rounding function. The change reduces dependencies and simplifies the codebase while maintaining the core functionality.

Changes:

  • Removed rust_decimal dependency from Cargo.toml
  • Simplified the round function to use native floating-point arithmetic instead of the Decimal type
  • Cleaned up transitive dependencies in Cargo.lock (ahash, arrayvec, bitvec, borsh, bytecheck, funty, ptr_meta, radium, rend, rkyv, seahash, simdutf8, tap, wyz)

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
src-tauri/src/utils/formatter.rs Removed rust_decimal imports and simplified round function to use native f64 arithmetic
src-tauri/Cargo.toml Removed rust_decimal dependency
src-tauri/Cargo.lock Cleaned up rust_decimal and its transitive dependencies

Comment thread src-tauri/src/utils/formatter.rs Outdated
Copilot AI review requested due to automatic review settings January 24, 2026 04:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

Comment thread src-tauri/src/utils/formatter.rs
Comment thread src-tauri/src/utils/formatter.rs
@shm11C3 shm11C3 merged commit 332f9e8 into develop Jan 24, 2026
22 checks passed
@shm11C3 shm11C3 deleted the chore/remove-decimal branch January 24, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

configuration rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants