diff --git a/Cargo.lock b/Cargo.lock index d9006fb..6a21d26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -333,7 +333,7 @@ checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" [[package]] name = "oxidefetch" -version = "1.3.0" +version = "1.3.1" dependencies = [ "byte-unit", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 00589cb..9589e63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxidefetch" -version = "1.3.0" +version = "1.3.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index 303792e..39c2083 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# oxidefetch 1.3.0 +# oxidefetch 1.3.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") @@ -76,4 +76,7 @@ No weird quirks to report at this time. **1.2.0:** Allowed users to enable field titles as a compile-time feature. Tentative fix for GPU display issues on Linux. **1.2.1:** Stable fix for GPU display quirks. **1.2.2:** All GPUs should print in their own lines. -**1.3.0:** Tentative fix for issue where empty GPU info line might print on Linux. +**1.3.0:** Tentative fix for issue where empty GPU info line might print on Linux. + +### License +This software is covered by the MIT license. See license.txt for details. \ No newline at end of file diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..caef332 --- /dev/null +++ b/license.txt @@ -0,0 +1,20 @@ + +Copyright 2023 shibedrill + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the “Software”), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/main.rs b/src/main.rs index dd54632..d635ae9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,26 @@ -// Code by River. Copy if you want, but don't say it's yours. +/* + +Copyright 2023 shibedrill + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the “Software”), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +*/ use byte_unit::*; use chrono::*; @@ -72,7 +94,7 @@ struct InformationStruct { kernel_ver: Option, uptime: String, shell: Option, - terminal: Option, + _terminal: Option, cpu: String, gpu: Option>, memory: String, @@ -107,7 +129,7 @@ impl InformationStruct { } }, - terminal: None, // TODO: Add terminal detection. + _terminal: None, // TODO: Add terminal detection. cpu: String::from(sys.cpus()[0].brand()),