wolfcrypt-conformance 0.1.1

Cross-validation and trait conformance tests for wolfcrypt
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    // Mirror wolfcrypt's cfg detection.
    // wolfcrypt-rs re-exports metadata from wolfcrypt-sys.
    // We read the cfg flags to gate our tests the same way.
    let cfgs = std::env::var("DEP_WOLFSSL_CFGS").unwrap_or_default();
    for cfg in cfgs.split(',').filter(|s| !s.is_empty()) {
        println!("cargo:rustc-cfg={cfg}");
    }
    let all = std::env::var("DEP_WOLFSSL_ALL_CFGS").unwrap_or_default();
    for cfg in all.split(',').filter(|s| !s.is_empty()) {
        println!("cargo:rustc-check-cfg=cfg({cfg})");
    }
}