fastboot-protocol

Crates.iofastboot-protocol
lib.rsfastboot-protocol
version0.2.0
sourcesrc
created_at2024-11-24 20:11:22.241951
updated_at2024-11-28 20:35:43.639984
descriptionFastboot protocol implementation
homepage
repositoryhttps://github.com/boardswarm/fastboot-rs
max_upload_size
id1459549
size53,798
Sjoerd Simons (sjoerdsimons)

documentation

README

Fastboot protocol implementation

Currently only supports USB client side (via nusb)

Example client

Printing fastboot using the nusb:

#[tokio::main]
async fn main() -> anyhow::Result<()> {
  let mut devices = fastboot_protocol::nusb::devices()?;
  let info = devices.next()
    .ok_or_else(|| anyhow::anyhow!("No Device found"))?;
  let mut fb = fastboot_protocol::nusb::NusbFastBoot::from_info(&info)?;

  println!("Fastboot version: {}", fb.get_var("version").await?);
  Ok(())
}
Commit count: 14

cargo fmt