From 52ce7a6425248c32959aa5bc0b3b7dd2f3178f85 Mon Sep 17 00:00:00 2001 From: icelain Date: Mon, 6 Mar 2023 23:32:02 +0530 Subject: [PATCH 1/3] update to new version of rin --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4c74db6..ceb9320 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "rin-sys" -version = "0.1.2" +version = "0.1.3" edition = "2021" -authors = ["icelain "] +authors = ["icelain "] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/icelain/rin" From 937281c49c00f72b1aced2a8258d2915a6a895d5 Mon Sep 17 00:00:00 2001 From: Icelain Date: Mon, 6 Mar 2023 23:36:08 +0530 Subject: [PATCH 2/3] update to version 0.1.3 cpu.rs was long broken and has been fixed. Instead of just using cpu_ghz, more fine grained cpu speed info is provided by instead returning a tuple field with the cpu_MHz of each thread --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b592d17..5b0cc4d 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A small rust library to fetch system information on linux # Installation -Add ``` rin-sys = "0.1.2" ``` to your Cargo.toml +Add ``` rin-sys = "0.1.3" ``` to your Cargo.toml # Base structs @@ -28,7 +28,7 @@ pub struct RamInfo { pub struct CpuInfo { pub cache_size: String, pub cores: usize, - pub cpu_speed: String, + pub cpu_speed: Vec<(usize, f64)>, pub model_name: String, pub vendor_id: String, pub is_fpu: bool, From a67719336e1f4e0093cf0f7f42f6d6d101c900e0 Mon Sep 17 00:00:00 2001 From: Icelain Date: Sat, 15 Apr 2023 09:59:57 +0530 Subject: [PATCH 3/3] Create rust.yml --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..1169011 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose