Some checks failed
deploy / create-windows-binaries (i686) (push) Has been cancelled
deploy / create-windows-binaries (x86_64) (push) Has been cancelled
deploy / create-unix-binaries (macos-latest, x86_64-apple-darwin) (push) Has been cancelled
deploy / create-unix-binaries (ubuntu-latest, x86_64-unknown-linux-musl) (push) Has been cancelled
deploy / deploy (push) Has been cancelled
11 lines
365 B
Rust
11 lines
365 B
Rust
use rustc_version::{version, Version};
|
|
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";
|
|
if version().unwrap() < Version::parse(REQUIRED_VERSION).unwrap() {
|
|
eprintln!("oxipng requires rustc >= {}.", REQUIRED_VERSION);
|
|
exit(1);
|
|
}
|
|
}
|