Bump minimum rustc to 1.46, required by crc 2.0
This commit is contained in:
parent
44d89ecff4
commit
bd432c470d
5 changed files with 4 additions and 6 deletions
2
.github/workflows/oxipng.yml
vendored
2
.github/workflows/oxipng.yml
vendored
|
|
@ -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
2
Cargo.lock
generated
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
2
build.rs
2
build.rs
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue