From bfecffa327c5d75748bdaec7ff0581109fbb2c90 Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Sun, 18 Dec 2022 09:23:16 +0100 Subject: [PATCH 1/4] Set minimal supported Rust version in the Cargo.toml file --- .github/workflows/version.yml | 2 +- README.md | 2 +- cli/Cargo.toml | 1 + os_info/Cargo.toml | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 66a34416..5c7c2bb1 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -19,7 +19,7 @@ jobs: with: # Feel free to bump this version if you need features of newer Rust. # Sync with badge in README.md - toolchain: 1.45.0 + toolchain: 1.31.0 profile: minimal override: true diff --git a/README.md b/README.md index 5e702891..0a9a0b96 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ **Project details:** [![LoC](https://tokei.rs/b1/github/stanislav-tkach/os_info)](https://github.com/stanislav-tkach/os_info) -![Rust 1.45+ required](https://img.shields.io/badge/rust-1.41+-blue.svg?label=Required%20Rust) +![Rust 1.31+ required](https://img.shields.io/badge/rust-1.41+-blue.svg?label=Required%20Rust) ## Overview diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 3bb1b05d..9a21be24 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -11,6 +11,7 @@ keywords = ["cli", "os", "os_type", "os_version", "os_info"] categories = ["command-line-interface", "os"] license = "MIT" edition = "2018" +rust-version = "1.31" [[bin]] name = "os_info" diff --git a/os_info/Cargo.toml b/os_info/Cargo.toml index bacd0eb3..9dd96f36 100644 --- a/os_info/Cargo.toml +++ b/os_info/Cargo.toml @@ -11,6 +11,7 @@ keywords = ["os", "os_type", "os_version", "os_info"] categories = ["os"] license = "MIT" edition = "2018" +rust-version = "1.31" [features] default = ["serde"] From bbcd7703b2719125b4261d605e1cbf5325b17956 Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Tue, 20 Dec 2022 14:08:21 +0100 Subject: [PATCH 2/4] Update clap version --- cli/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 9a21be24..9c0b32f7 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -21,7 +21,7 @@ path = "src/main.rs" os_info = { version = "3.5.1", default-features = false, path = "../os_info" } log = "0.4.5" env_logger = "0.9" -clap = { version = "3", features = ["derive"] } +clap = { version = "4", features = ["derive"] } [dev-dependencies] assert_cmd = "2" From 7e7619ba06abf7c050598fa156de17874866dddf Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Thu, 22 Dec 2022 15:04:55 +0100 Subject: [PATCH 3/4] Min version 1.60 --- README.md | 2 +- cli/Cargo.toml | 2 +- os_info/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0a9a0b96..b58f7b23 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ **Project details:** [![LoC](https://tokei.rs/b1/github/stanislav-tkach/os_info)](https://github.com/stanislav-tkach/os_info) -![Rust 1.31+ required](https://img.shields.io/badge/rust-1.41+-blue.svg?label=Required%20Rust) +![Rust 1.60+ required](https://img.shields.io/badge/rust-1.41+-blue.svg?label=Required%20Rust) ## Overview diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 12fb894f..34ca9208 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["cli", "os", "os_type", "os_version", "os_info"] categories = ["command-line-interface", "os"] license = "MIT" edition = "2018" -rust-version = "1.31" +rust-version = "1.60" [[bin]] name = "os_info" diff --git a/os_info/Cargo.toml b/os_info/Cargo.toml index 9dd96f36..5c82de6d 100644 --- a/os_info/Cargo.toml +++ b/os_info/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["os", "os_type", "os_version", "os_info"] categories = ["os"] license = "MIT" edition = "2018" -rust-version = "1.31" +rust-version = "1.60" [features] default = ["serde"] From e36d819d0583ec6bbea3a1f4b98564e278bf52d2 Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Fri, 23 Dec 2022 00:43:26 +0100 Subject: [PATCH 4/4] fix --- .github/workflows/version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 5c7c2bb1..751e3a2e 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -19,7 +19,7 @@ jobs: with: # Feel free to bump this version if you need features of newer Rust. # Sync with badge in README.md - toolchain: 1.31.0 + toolchain: 1.60.0 profile: minimal override: true