{"id":20122861,"url":"https://github.com/freaky/rust-diffparser","last_synced_at":"2026-05-12T00:46:35.800Z","repository":{"id":142942557,"uuid":"163246569","full_name":"Freaky/rust-diffparser","owner":"Freaky","description":"A streaming unified diff parser for Rust","archived":false,"fork":false,"pushed_at":"2019-03-08T16:42:30.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T07:32:09.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freaky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-12-27T04:20:23.000Z","updated_at":"2019-03-08T16:42:32.000Z","dependencies_parsed_at":"2023-04-15T14:18:41.544Z","dependency_job_id":null,"html_url":"https://github.com/Freaky/rust-diffparser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Frust-diffparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Frust-diffparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Frust-diffparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Frust-diffparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freaky","download_url":"https://codeload.github.com/Freaky/rust-diffparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241566176,"owners_count":19983260,"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":[],"created_at":"2024-11-13T19:41:32.324Z","updated_at":"2025-11-29T00:06:29.197Z","avatar_url":"https://github.com/Freaky.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diffparser\n\nBasic streaming unified diff parser for Rust.\n\nIt's fairly fast:\n\n```\n-% wc -l huge.diff\n 5065549 huge.diff\n\n-% time target/release/diffparser huge.diff\n 19921 files changed, 138067 hunks, 1871681 insertions(+), 1731617 deletions(-)\n0.918 real, 0.767 user, 0.150 sys;  page: 0 hard/151 soft, swap: 0, I/O: 2/0\nMem: 2752KB (138KB shared + 146KB data/stack = 284KB), VCSW: 6 IVCSW: 11\n\n-% time diffstat -s huge.diff\n 19921 files changed, 1871681 insertions(+), 1731617 deletions(-)\n1.443 real, 1.403 user, 0.039 sys;  page: 0 hard/1180 soft, swap: 0, I/O: 2/0\nMem: 6488KB (31KB shared + 138KB data/stack = 170KB), VCSW: 9 IVCSW: 17\n\n-% wc -l 86d7f5d.diff\n 14397595 86d7f5d.diff\n\n-% time target/release/diffparser 86d7f5d.diff\n 31912 files changed, 31804 hunks, 14206216 insertions(+)\n1.905 real, 1.668 user, 0.236 sys;  page: 0 hard/144 soft, swap: 0, I/O: 2/0\nMem: 2724KB (140KB shared + 149KB data/stack = 290KB), VCSW: 12 IVCSW: 22\n\n-% time diffstat -s 86d7f5d.diff\n 31912 files changed, 14206216 insertions(+)\n2.823 real, 2.727 user, 0.095 sys;  page: 0 hard/1602 soft, swap: 0, I/O: 2/0\nMem: 8196KB (31KB shared + 138KB data/stack = 170KB), VCSW: 16 IVCSW: 32\n```\n\nIt's also poorly-tested, has an API I've barely thought through, and was largely\nwritten when I was drunk.  So, um, maybe use [unidiff] for now?\n\n\n[unidiff]: https://crates.io/crates/unidiff\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Frust-diffparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreaky%2Frust-diffparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Frust-diffparser/lists"}