jsoncompat 0.5.0

JSON Schema and OpenAPI Compatibility Checker
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Prepare the full benchmark corpus. Normal tests generate isolated copies.
#[path = "../tests/support/dataclass_corpus.rs"]
mod corpus;
fn main() {
    let destination = std::env::args_os()
        .nth(1)
        .map(std::path::PathBuf::from)
        .unwrap_or_else(|| "target/generated-dataclass-fixtures".into());
    let files = corpus::generate(&destination);
    println!(
        "Generated {} fixture artifacts in {}",
        files.len(),
        destination.display()
    );
}