{"id":17946584,"url":"https://github.com/giuseppe998e/xentrace-parser-rs","last_synced_at":"2025-04-03T14:44:32.646Z","repository":{"id":44521860,"uuid":"371713093","full_name":"giuseppe998e/xentrace-parser-rs","owner":"giuseppe998e","description":"XenTrace binary file parser written in Rust with a study purpose","archived":false,"fork":false,"pushed_at":"2024-03-27T16:04:01.000Z","size":1303,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T04:09:05.764Z","etag":null,"topics":["analyzer","binary-data","parser","rust","trace","xen","xentrace","xentrace-parser"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giuseppe998e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-28T13:40:12.000Z","updated_at":"2021-10-06T13:09:39.000Z","dependencies_parsed_at":"2024-10-29T07:16:40.609Z","dependency_job_id":null,"html_url":"https://github.com/giuseppe998e/xentrace-parser-rs","commit_stats":{"total_commits":176,"total_committers":2,"mean_commits":88.0,"dds":"0.011363636363636354","last_synced_commit":"bd8b44c5acb3a5df28f795cf300d708748d74006"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppe998e%2Fxentrace-parser-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppe998e%2Fxentrace-parser-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppe998e%2Fxentrace-parser-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppe998e%2Fxentrace-parser-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giuseppe998e","download_url":"https://codeload.github.com/giuseppe998e/xentrace-parser-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247024067,"owners_count":20870935,"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","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":["analyzer","binary-data","parser","rust","trace","xen","xentrace","xentrace-parser"],"created_at":"2024-10-29T07:06:34.033Z","updated_at":"2025-04-03T14:44:32.622Z","avatar_url":"https://github.com/giuseppe998e.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XenTrace binary data parser (RUST LANG) [![GitHub Latest Tag](https://img.shields.io/github/v/tag/giuseppe998e/xentrace-parser-rs?style=flat-square)](https://github.com/giuseppe998e/xentrace-parser-rs/tags) [![Crates.io Downloads](https://img.shields.io/crates/d/xentrace-parser?style=flat-square)](https://crates.io/crates/xentrace-parser)\n\nThis library parses XenTrace binary files by producing a list of event records sorted by their TSC.\n\n\u003e This is the Rust lang version of a [project](https://github.com/giuseppe998e/xentrace-parser) made for the final three-year degree exam at the University of Turin.\n\n## Dependencies\n\n- `rust` (v1.65+)\n\n## Usage\n\n```rust \nuse xentrace_parser::{Result, Trace};\n\nfn main() -\u003e Result\u003c()\u003e {\n    // The trace is truncated to the last readable record, returning no errors.\n    let trace = Trace::from_file(\"/path/to/xentrace.bin\")?;\n\n    // Alternatively, you can create a trace from a bytes slice:\n    // let bytes: Vec\u003cu8\u003e = vec![/* byte data */];\n    // let trace = Trace::from_bytes(\u0026bytes)?;\n\n    // Alternatively, you can create a trace from a reader:\n    // let file = std::fs::File::open(\"/path/to/xentrace.bin\")?;\n    // let bufreader = std::io::BufReader::new(file);\n    // let trace = Trace::from_reader(bufreader);\n\n    for record in trace.iter() {\n        println!(\"{:?}\", record);\n    }\n\n    Ok(())\n}\n```\n\n\u003e An example debug can be started from the root directory with: `cargo run --example debug_trace` (only available on GitHub sources).\n\n## License\n\nThis library is released under the [`GNU Lesser General Public License v2.1 (or later)`](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuseppe998e%2Fxentrace-parser-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiuseppe998e%2Fxentrace-parser-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuseppe998e%2Fxentrace-parser-rs/lists"}