Bump minimum rustc to 1.46, required by crc 2.0

This commit is contained in:
Josh Holmer 2021-07-11 23:54:29 -04:00
parent 44d89ecff4
commit bd432c470d
5 changed files with 4 additions and 6 deletions

View file

@ -19,7 +19,7 @@ jobs:
- x86_64-apple-darwin
toolchain:
# Minimum stable
- "1.45.0"
- "1.46.0"
- stable
- beta
- nightly

2
Cargo.lock generated
View file

@ -1,7 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "adler"
version = "1.0.2"

View file

@ -30,7 +30,7 @@ cargo build --release
cp target/release/oxipng /usr/local/bin
```
The current minimum supported Rust version is **1.45.0**.
The current minimum supported Rust version is **1.46.0**.
Oxipng follows Semantic Versioning.

View file

@ -30,7 +30,7 @@ cargo build --release
cp target/release/oxipng /usr/local/bin
```
The current minimum supported Rust version is **1.45.0**.
The current minimum supported Rust version is **1.46.0**.
Oxipng follows Semantic Versioning.

View file

@ -3,7 +3,7 @@ use std::process::exit;
fn main() {
// This should match the version in Github Actions scripts and the Readme
const REQUIRED_VERSION: &str = "1.45.0";
const REQUIRED_VERSION: &str = "1.46.0";
if version().unwrap() < Version::parse(REQUIRED_VERSION).unwrap() {
eprintln!("oxipng requires rustc >= {}.", REQUIRED_VERSION);
exit(1);