Skip to content

Commit 660cf7f

Browse files
committed
fix: Bump MSRV to 1.60.0
This is over 6 months old and allows us to hide optional dependencies as features so we can change them without breaking compatibility (after the first time).
1 parent e572d04 commit 660cf7f

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msrv = "1.60.0" # MSRV

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ jobs:
5555
- name: Run crate example
5656
run: cargo run --example default
5757
msrv:
58-
name: "Check MSRV: 1.41.0"
58+
name: "Check MSRV: 1.60.0"
5959
runs-on: ubuntu-latest
6060
steps:
6161
- name: Checkout repository
6262
uses: actions/checkout@v3
6363
- name: Install Rust
6464
uses: actions-rs/toolchain@v1
6565
with:
66-
toolchain: 1.41.0 # MSRV
66+
toolchain: 1.60.0 # MSRV
6767
profile: minimal
6868
override: true
6969
- uses: Swatinem/rust-cache@v1
@@ -119,7 +119,7 @@ jobs:
119119
- name: Install Rust
120120
uses: actions-rs/toolchain@v1
121121
with:
122-
toolchain: 1.41.0 # MSRV
122+
toolchain: 1.60.0 # MSRV
123123
profile: minimal
124124
override: true
125125
components: clippy

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ license = "MIT OR Apache-2.0"
1414
repository = "https://github.com/rust-cli/env_logger/"
1515
categories = ["development-tools::debugging"]
1616
keywords = ["logging", "log", "logger"]
17-
edition = "2018"
18-
rust-version = "1.41.0" # MSRV
17+
edition = "2021"
18+
rust-version = "1.60.0" # MSRV
1919
include = [
2020
"build.rs",
2121
"src/**/*",

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ pub fn init() {
11681168
/// ```
11691169
/// use env_logger::{Builder, Env};
11701170
///
1171-
/// # fn run() -> Result<(), Box<::std::error::Error>> {
1171+
/// # fn run() -> Result<(), Box<dyn ::std::error::Error>> {
11721172
/// let env = Env::new().filter("MY_LOG").write_style("MY_LOG_STYLE");
11731173
///
11741174
/// env_logger::try_init_from_env(env)?;

0 commit comments

Comments
 (0)