aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/rust/libflashrom-sys/src
diff options
context:
space:
mode:
authorEvan Benn <evanbenn@chromium.org>2022-06-01 09:30:50 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2022-08-19 04:37:21 +0000
commit06d32e11473bbd4631cf2709c16d220d81280f2d (patch)
treefde5857996be69b665cfa82dec16556945436179 /bindings/rust/libflashrom-sys/src
parent6c1b0acc4ccf4c1fa99b6a0a58fe1a7eb804ce59 (diff)
downloadflashrom-06d32e11473bbd4631cf2709c16d220d81280f2d.tar.gz
flashrom-06d32e11473bbd4631cf2709c16d220d81280f2d.tar.bz2
flashrom-06d32e11473bbd4631cf2709c16d220d81280f2d.zip
bindings/rust/libflashrom-sys: Create thin rust bindgen binding
Use bindgen to create a rust library that calls into libflashrom using FFI. BUG=b:230545739 BRANCH=None TEST=cargo test Change-Id: I36ba70de2bca8f83d2fdd6fd4c9b7c28a11624ee Signed-off-by: Evan Benn <evanbenn@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/65280 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'bindings/rust/libflashrom-sys/src')
-rw-r--r--bindings/rust/libflashrom-sys/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/bindings/rust/libflashrom-sys/src/lib.rs b/bindings/rust/libflashrom-sys/src/lib.rs
new file mode 100644
index 00000000..4dc82827
--- /dev/null
+++ b/bindings/rust/libflashrom-sys/src/lib.rs
@@ -0,0 +1,5 @@
+#![allow(non_upper_case_globals)]
+#![allow(non_camel_case_types)]
+#![allow(non_snake_case)]
+#![allow(deref_nullptr)]
+include!(concat!(env!("OUT_DIR"), "/bindings.rs"));