esp-ota 0.2.0

Easy OTA updates for ESP32 chips using only safe Rust. Transport agnostic.
1
2
3
4
5
6
7
8
9
10
11
fn main() -> Result<(), Box<dyn std::error::Error>> {
    embuild::build::CfgArgs::output_propagated("ESP_IDF")?;

    // Will not be available when built with a CMake-first or a PIO-first build
    // We need to output these only when building the examples' binaries anyway
    if let Ok(args) = embuild::build::LinkArgs::try_from_env("ESP_IDF") {
        args.output();
    }

    Ok(())
}