From 9bec55bcc7d659c78761babe9aede14ae357d6a3 Mon Sep 17 00:00:00 2001 From: Hexa Dust Date: Fri, 18 Jul 2025 21:41:30 +0100 Subject: [PATCH] pointing to upstream crate URL --- Cargo.lock | 29 +++++++++++++++-------------- Cargo.toml | 2 +- src/main.rs | 4 ++-- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7348c76..725eb39 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,9 +27,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" [[package]] name = "avr-calc" @@ -37,7 +37,7 @@ version = "0.1.0" dependencies = [ "arduino-hal", "avr-device", - "calc-math", + "core-decimal-calc", "embedded-hal 1.0.0", "nb 1.1.0", "ufmt", @@ -89,19 +89,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8fe8f5a8a398345e52358e18ff07cc17a568fbca5c6f73873d3a62056309603" [[package]] -name = "calc-math" +name = "cfg-if" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268" + +[[package]] +name = "core-decimal-calc" version = "0.1.0" +source = "git+https://gitea.hexadust.net/hxd/core-decimal-calc.git#2a0b7a34f032ce58699c3944444ad19a11cfe2e8" dependencies = [ "num-traits", "ufmt", ] -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - [[package]] name = "critical-section" version = "1.2.0" @@ -172,18 +173,18 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "proc-macro2" -version = "1.0.79" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" +checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.36" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" dependencies = [ "proc-macro2", ] diff --git a/Cargo.toml b/Cargo.toml index 1489607..68de97e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ bench = false ufmt = "0.2.0" nb = "1.1.0" embedded-hal = "1.0" -calc-math = { path = "../calc-math", features = ["ufmt"] } +core-decimal-calc = { git = "https://gitea.hexadust.net/hxd/core-decimal-calc.git", features = ["ufmt"] } avr-device = "0.7.0" [dependencies.arduino-hal] diff --git a/src/main.rs b/src/main.rs index 051839c..90baa4d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,11 +12,11 @@ use avr_device::{ asm::sleep, interrupt::{CriticalSection, Mutex}, }; -use calc_math::{ +use core::cell::RefCell; +use core_decimal_calc::{ calc::{StackCalc, StackCalcError}, Decimal, }; -use core::cell::RefCell; use display::{DispalyState, SegmentPins, Show}; use keyboard::{Debounce, KeyPress, KeyReadout, Keyboard};