From 73c5245100b27e6fd3619f1f4e22b70d8438ebdc Mon Sep 17 00:00:00 2001 From: shibedrill <53824200+shibedrill@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:52:02 -0500 Subject: [PATCH] more detailed test output --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 3 ++- src/main.rs | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d9a5887..6863420 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -490,7 +490,7 @@ checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" [[package]] name = "oxidefetch" -version = "2.0.0-beta.0" +version = "2.0.0-beta.1" dependencies = [ "byte-unit", "chrono", diff --git a/Cargo.toml b/Cargo.toml index e20e9b1..692ba3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "oxidefetch" description = "A fast, cross platform Fetch program for your terminal" -version = "2.0.0-beta.0" +version = "2.0.0-beta.1" edition = "2021" authors = [ "NamedNeon", "shibedrill" ] license = "MIT" diff --git a/README.md b/README.md index b711f84..b25c1df 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# oxidefetch 2.0.0-beta.0 +# oxidefetch 2.0.0-beta.1 Fully cross platform Neofetch clone written in Rust. Up to 25 times faster than Neofetch! ![alt text](image.png "Example output of OxideFetch on a WSL2 Arch Linux host") @@ -101,6 +101,7 @@ No weird quirks to report at this time. **1.4.7:** Removed several `unwrap()` calls. Changed debug output to serialize to RON. **1.4.8:** Applied Clippy suggestions. Added stuff to README. **2.0.0-beta.0:** Switch from deprecated, platform-dependent GPU backends to [libpci-rs](https://github.com/namedneon/libpci-rs) +**2.0.0-beta.1:** Updated test functionality to include package version in the log file. ### License This software is covered by the MIT license. See license.txt for details. diff --git a/src/main.rs b/src/main.rs index f88e24f..40f9fec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -254,8 +254,8 @@ mod test { pub fn log_gathered_data() { let sys_info = Information::new(); //let data_string = format!("{:#?}", sys_info); - let data_string = ron::ser::to_string_pretty(&sys_info, ron::ser::PrettyConfig::default()) - .expect("Failed to serialize data structure. Aborting..."); + let data_string = format!("Version: {}\nBegin structure dump:\n{}", env!("CARGO_PKG_VERSION"), ron::ser::to_string_pretty(&sys_info, ron::ser::PrettyConfig::default()) + .expect("Failed to serialize data structure. Aborting...")); let result = fs::write("./test_output.ron", data_string); if result.is_ok() {