rauc 0.2.0

Build reliable embedded Linux updates with Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::env::args;

use rauc::{InstallBundleArgs, InstallerProxy};
use zbus::{Connection, Result};

#[tokio::main]
async fn main() -> Result<()> {
    let bundle = args().nth(1).expect("missing bundle path or URL");

    let connection = Connection::system().await?;
    let proxy = InstallerProxy::new(&connection).await?;

    proxy
        .install_bundle(&bundle, InstallBundleArgs::default())
        .await?;

    Ok(())
}