Hello flashrom,
I have uploaded 2 CLs implementing a libflashrom rust binding:
https://review.coreboot.org/c/flashrom/+/65280
https://review.coreboot.org/c/flashrom/+/65281
The first creates a bindgen (https://github.com/rust-lang/rust-bindgen) 'thin' binding generated from the header.
The second creates a 'fat' binding, translating from more idiomatic rust into the libflashrom API calls. The fat binding is not complete, I have added only the parts I am using.
I have also added the first user of the fat binding, flashrom-tester: https://review.coreboot.org/c/flashrom/+/65282
I think the first question is is the flashrom community happy to have these bindings live inside the flashrom git repo? They could live in their own separate repos, but keeping them with flashrom will make keeping up with libflashrom API changes more straightforward.
Otherwise please review the implementation if you are interested.
Thanks
Evan Benn