wolfcrypt 0.1.0

RustCrypto trait implementations backed by wolfCrypt
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    // wolfcrypt-rs re-exports metadata from wolfcrypt-sys.
    // We read the cfg flags to gate our modules 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})");
    }
}