test-case 1.2.3

Provides #[test_case(...)] procedural macro attribute for generating parametrized test cases easily
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::process::exit;

const MIN_SUPPORTED_VERSION: &str = "1.34.0";

fn main() {
    match version_check::is_min_version(MIN_SUPPORTED_VERSION) {
        Some(true) => {}
        _ => {
            // rustc version too small or can't figure it out
            eprintln!(
                "rustc >= {} is required for test-case to compile",
                MIN_SUPPORTED_VERSION
            );
            exit(1);
        }
    }
}