diff --git a/Cargo.lock b/Cargo.lock index 47d1309..a13fbee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8,10 +8,16 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" +[[package]] +name = "fractions" +version = "0.1.0" +source = "git+https://laentropia-homelab.tail7368da.ts.net/laentropia/Rusty-Fractions.git?branch=main#e79d93aa9d20a90358789f872994bc8cefa2779e" + [[package]] name = "matrix" version = "0.1.0" dependencies = [ + "fractions", "num-traits", ] diff --git a/Cargo.toml b/Cargo.toml index 4d23aed..91351e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,3 +5,4 @@ edition = "2021" [dependencies] num-traits = "0.2.19" +fractions = {git = "https://laentropia-homelab.tail7368da.ts.net/laentropia/Rusty-Fractions.git", branch= "main" } diff --git a/src/lib.rs b/src/lib.rs index d874b93..2fe4d0b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ use core::panic; +use fractions::Fraction; use num_traits::{Float, Num, NumAssign, Signed}; use std::fmt::{self, Debug}; use std::ops::Add;