Crates.io | fastboot-protocol |
lib.rs | fastboot-protocol |
version | 0.2.0 |
source | src |
created_at | 2024-11-24 20:11:22.241951 |
updated_at | 2024-11-28 20:35:43.639984 |
description | Fastboot protocol implementation |
homepage | |
repository | https://github.com/boardswarm/fastboot-rs |
max_upload_size | |
id | 1459549 |
size | 53,798 |
Currently only supports USB client side (via nusb)
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(())
}