mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-03 06:53:18 +02:00
bindings/rust/libflashrom: Create fat rust binding
Create a rust library wrapping libflashrom-sys in a more idiomatic rust API. BUG=b:230545739 BRANCH=None TEST=cargo test Change-Id: Ie3bcfde40dc475f6a9439ccab8e2446967f7d6dd Signed-off-by: Evan Benn <evanbenn@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/65281 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
06d32e1147
commit
401d9bfa71
20
bindings/rust/libflashrom/Cargo.toml
Normal file
20
bindings/rust/libflashrom/Cargo.toml
Normal file
@ -0,0 +1,20 @@
|
||||
[package]
|
||||
name = "libflashrom"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
libflashrom-sys = { path = "../libflashrom-sys" }
|
||||
libc = "0.2.124"
|
||||
regex = "1.5.5"
|
||||
once_cell = "1.7.2"
|
||||
|
||||
[dev-dependencies]
|
||||
rusty-fork = "0.3.0"
|
||||
gag = "1"
|
||||
|
||||
[build-dependencies]
|
||||
pkg-config = "0.3.19"
|
||||
cc = "1.0.72"
|
Reference in New Issue
Block a user