zmodem2 0.1.2

ZMODEM file transfer protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT OR Apache-2.0

use std::process::Command;

fn main() {
    println!("cargo:rerun-if-env-changed=OUT_DIR");

    // rzsz
    if Command::new("rz").spawn().is_ok() && Command::new("sz").spawn().is_ok() {
        println!("cargo:rustc-cfg=host_has_rzsz");
    } else {
        println!("cargo:warning=no rzsz");
    }
}