GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Using the Rust Library Using the Rust Library
devttys0 edited this page
Binwalk includes a library that can be integrated into other Rust projects. You will need to install the following system dependencies: Tip Detailed API documentation can be found in Binwalk's Rust documentation: Create a new Rust project: To use the latest release, add the following dependency to your project's binwalk = "3.1.0" To build against the the latest master branch (possibly unstable), add the following dependency to your project's binwalk = { git = "https://github.com/ReFirmLabs/binwalk.git" } Edit your project's use binwalk::Binwalk; fn main() { // Create a new Binwalk instance let binwalker = Binwalk::new(); // Read in the data you want to analyze let file_data = std::fs::read("/tmp/firmware.bin").expect("Failed to read from file"); // Scan the file data and print the results for result in binwalker.scan(&file_data) { println!("{:#?}", result); } } Build and run your project: |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |