From e63ea625123863b884eb86c8719ce2837357d845 Mon Sep 17 00:00:00 2001 From: Blizzard Finnegan Date: Wed, 21 Jun 2023 10:32:44 -0400 Subject: [PATCH] remove dependencies, version bump First attempt at fixing bug #11 --- Cargo.lock | 29 +---------------------------- Cargo.toml | 6 ++++-- src/device.rs | 8 ++++---- src/main.rs | 2 +- 4 files changed, 10 insertions(+), 35 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3c9061b..f61b6a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -382,26 +382,6 @@ version = "0.2.142" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a987beff54b60ffa6d51982e1aa1146bc42f19bd26be28b0586f252fccf5317" -[[package]] -name = "libudev" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b324152da65df7bb95acfcaab55e3097ceaab02fb19b228a9eb74d55f135e0" -dependencies = [ - "libc", - "libudev-sys", -] - -[[package]] -name = "libudev-sys" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c8469b4a23b962c1396b9b451dda50ef5b283e8dd309d69033475fa9b334324" -dependencies = [ - "libc", - "pkg-config", -] - [[package]] name = "link-cplusplus" version = "1.0.8" @@ -486,12 +466,6 @@ version = "1.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" -[[package]] -name = "pkg-config" -version = "0.3.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" - [[package]] name = "proc-macro-hack" version = "0.5.20+deprecated" @@ -630,7 +604,6 @@ dependencies = [ "IOKit-sys", "bitflags", "cfg-if", - "libudev", "mach 0.3.2", "nix", "regex", @@ -639,7 +612,7 @@ dependencies = [ [[package]] name = "seymour_life" -version = "2.3.1" +version = "2.3.2" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index a8598f7..5642c85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,14 +2,16 @@ [package] name = "seymour_life" -version = "2.3.1" +version = "2.3.2" edition = "2021" +#For cross-compilation, uncomment this and line 1. +#forced-target="aarch64-unknown-linux-gnu" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] rppal = "0.14.1" -serialport = "4.2.0" +serialport = { version = "4.2.0", default-features = false } log = "0.4" fern = "0.6.2" chrono = "0.4.24" diff --git a/src/device.rs b/src/device.rs index 8c563dc..dfa9341 100755 --- a/src/device.rs +++ b/src/device.rs @@ -195,7 +195,7 @@ impl Device{ log::error!("Unexpected response from device {}!",self.serial); log::debug!("brightness menu, catch-all, first loop, {}, {:?}",self.serial,self.usb_tty); log::error!("Unsure how to continue. Expect data from device {} to be erratic until next cycle.",self.serial); - break; + //break; }, }; }; @@ -222,7 +222,7 @@ impl Device{ log::error!("Unexpected response from device {}!", self.serial); log::debug!("brightness menu, catch-all, second loop, {}, {:?}",self.serial,self.usb_tty); log::error!("Unsure how to continue. Expect data from device {} to be erratic until next cycle.",self.serial); - break; + //break; }, }; }; @@ -266,7 +266,7 @@ impl Device{ log::error!("Unexpected response from device {}!",self.serial); log::debug!("lifecycle menu, catch-all, first loop, {}, {:?}",self.serial,self.usb_tty); log::error!("Unsure how to continue. Expect data from device {} to be erratic until next cycle.",self.serial); - break; + //break; }, }; }; @@ -293,7 +293,7 @@ impl Device{ log::error!("Unexpected response from device {}! {:?}", self.serial, read_in); log::debug!("lifecycle menu, catch-all, second loop, {}, {:?}",self.serial,self.usb_tty); log::error!("Unsure how to continue. Expect data from device {} to be erratic until next cycle.",self.serial); - break; + //break; }, }; }; diff --git a/src/main.rs b/src/main.rs index 04e76f3..bdf33d2 100755 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ struct Args{ } -const VERSION:&str="2.3.1"; +const VERSION:&str="2.3.2"; const DEBUG_ITERATION_COUNT:u64=50000; fn int_input_filtering(prompt:Option<&str>) -> u64{