oxipng 4.0.0

A lossless PNG compression optimizer
Documentation
1
2
3
4
5
6
7
8
9
10
11
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);
    }
}