{"id":30285910,"url":"https://github.com/kedom1337/peview","last_synced_at":"2025-08-16T20:44:42.499Z","repository":{"id":64245221,"uuid":"574216267","full_name":"kedom1337/peview","owner":"kedom1337","description":"A minimal and fast zero-copy parser for the PE32+ file format.","archived":false,"fork":false,"pushed_at":"2023-05-30T11:36:58.000Z","size":5671,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T23:50:34.679Z","etag":null,"topics":["no-std-alloc","parser","portable-executable","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kedom1337.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-04T19:25:53.000Z","updated_at":"2025-05-23T11:43:51.000Z","dependencies_parsed_at":"2023-01-30T22:15:46.673Z","dependency_job_id":null,"html_url":"https://github.com/kedom1337/peview","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kedom1337/peview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedom1337%2Fpeview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedom1337%2Fpeview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedom1337%2Fpeview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedom1337%2Fpeview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kedom1337","download_url":"https://codeload.github.com/kedom1337/peview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedom1337%2Fpeview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270769344,"owners_count":24642070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["no-std-alloc","parser","portable-executable","rust"],"created_at":"2025-08-16T20:44:33.560Z","updated_at":"2025-08-16T20:44:42.465Z","avatar_url":"https://github.com/kedom1337.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# peview\n\nA minimal and fast zero-copy parser for the PE32+ file format.\n\n[![Build status](https://github.com/kedom1337/peview/workflows/ci/badge.svg)](https://github.com/kedom1337/peview/actions)\n[![Docs.rs](https://img.shields.io/docsrs/peview)](https://docs.rs/peview/latest/peview)\n[![Crates.io](https://img.shields.io/crates/v/peview.svg)](https://crates.io/crates/peview)\n\n## Goal\n\nThis project aims to offer a more light weight and easier to use alternative to \nfully featured binary parsing libraries when it comes to parsing the PE32+ file format. It does so by:\n\n- Taking a zero-copy approach. Everything is a reference to the original data\n- Parsing on demand. Basic parsing is done at the beginning, the rest is opt-in\n- Not focusing on endianness. The parsed buffer is assumed to be in LE\n- Strongly validating native structures according to the [official specification](https://learn.microsoft.com/en-us/windows/win32/debug/pe-format)\n- Having no external dependencies on top of being a `no-std` library\n\n## Usage\n\nExample of printing the RVA's and names of imported symbols:\n\n```rust\nuse peview::{dir::Import, file::PeView};\nuse std::{error::Error, fs::File, io::Read};\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n    // Read file into buffer and parse it\n    let mut buf = Vec::new();\n    File::open(\"etc/exe/ntoskrnl.exe\")?.read_to_end(\u0026mut buf)?;\n    let pe = PeView::parse(\u0026buf)?;\n\n    // Iterate over modules in the import table\n    for m in pe.imports()? {\n        // Print the current modules name\n        let module = m?;\n        println!(\"{}\", module.name()?);\n\n        // Iterate over symbols within the module\n        for i in module {\n            // Check if the symbol is imported by name\n            if let Import::Name(h, n) = i? {\n                // Print out both the hint and its name\n                println!(\"\u003e {:#04x}: {}\", h, n);\n            }\n        }\n    }\n\n    Ok(())\n}\n```\nMore usage examples can be found [here](https://github.com/kedom1337/peview/blob/master/tests/integration.rs).\n\n## Installation\n\nAdd the following line to your Cargo.toml file:\n\n```toml\n[dependencies]\n# ...\npeview = \"0.2.3\"\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkedom1337%2Fpeview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkedom1337%2Fpeview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkedom1337%2Fpeview/lists"}