/
githubmirror
/
flashrom
Обзор
Документация
Войти
/
githubmirror
/
flashrom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
bindings/rust/README
29 строк
1 KB
Anastasia Klimchuk
Delete util/flashrom_tester
30 июл 2026, 08:08
30 июл 2026, 08:08
85ef8c6
Код
Авторство
О чём код?
------------------------------------------------------------------------------- flashrom rust bindings README ------------------------------------------------------------------------------- Included within this folder are rust foreign function interface bindings for the libflashrom API. libflashrom-sys is an automatically generated binding built from the header file by the rust `bindgen` utility. It can be used for 'unsafe' raw access to the libflashrom API. libflashrom is a library built on libflashrom-sys, exporting a convential rust API. Build Instructions ------------------ A rust toolchain is required, rustup is one source for that: https://rustup.rs/ From within child folders of this directory, where the Cargo.toml files live, run: cargo build cargo test cargo doc --open The build process uses pkg-config to find the installed version of libflashrom. To override the desired version you wish to compile against pkg-config can be told where to find the desired header and library, for example: env PKG_CONFIG_PATH=$HOME/src/flashrom/build/install/lib/x86_64-linux-gnu/pkgconfig \ LD_LIBRARY_PATH=$HOME/src/flashrom/build/install/lib/x86_64-linux-gnu \ cargo test