Skip to content

Commit

Permalink
chore(math): replace malachite lib with dashu (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewWestberg authored Dec 14, 2024
1 parent fcfc5af commit 1e5c267
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 102 deletions.
4 changes: 2 additions & 2 deletions pallas-math/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ authors = ["Andrew Westberg <[email protected]>"]
exclude = ["tests/data/*"]

[dependencies]
malachite = "0.4.16"
malachite-base = "0.4.16"
dashu-int = "0.4.1"
dashu-base = "0.4.1"
regex = "1.10.5"
thiserror = "1.0.61"

Expand Down
2 changes: 1 addition & 1 deletion pallas-math/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod math;
pub mod math_malachite;
pub mod math_dashu;
4 changes: 2 additions & 2 deletions pallas-math/src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::ops::{Div, Mul, Neg, Sub};
use std::sync::LazyLock;
use thiserror::Error;

pub type FixedDecimal = crate::math_malachite::Decimal;
pub type FixedDecimal = crate::math_dashu::Decimal;

pub static ZERO: LazyLock<FixedDecimal> = LazyLock::new(|| FixedDecimal::from(0u64));
pub static MINUS_ONE: LazyLock<FixedDecimal> = LazyLock::new(|| FixedDecimal::from(-1i64));
Expand Down Expand Up @@ -95,7 +95,7 @@ pub struct ExpCmpOrdering {
#[cfg(test)]
mod tests {
use super::*;
use malachite_base::num::arithmetic::traits::Abs;
use dashu_base::Abs;
use proptest::prelude::Strategy;
use proptest::proptest;
use std::fs::File;
Expand Down
Loading

0 comments on commit 1e5c267

Please sign in to comment.