{"id":36236857,"url":"https://github.com/prefix-dev/flickzeug","last_synced_at":"2026-02-24T09:01:39.170Z","repository":{"id":329138407,"uuid":"1118120563","full_name":"prefix-dev/flickzeug","owner":"prefix-dev","description":"Rust crate for finding and manipulating differences between files (implementes patch / diff with fuzzy matching). Fork of `diffy` by Brandon Williams.","archived":false,"fork":false,"pushed_at":"2026-02-12T16:41:41.000Z","size":314,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-13T00:39:32.722Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prefix-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T09:41:22.000Z","updated_at":"2026-02-09T19:50:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/prefix-dev/flickzeug","commit_stats":null,"previous_names":["prefix-dev/flickzeug"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/prefix-dev/flickzeug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prefix-dev%2Fflickzeug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prefix-dev%2Fflickzeug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prefix-dev%2Fflickzeug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prefix-dev%2Fflickzeug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prefix-dev","download_url":"https://codeload.github.com/prefix-dev/flickzeug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prefix-dev%2Fflickzeug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29777603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-11T06:01:52.842Z","updated_at":"2026-02-24T09:01:39.135Z","avatar_url":"https://github.com/prefix-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flickzeug\n\n![Flickzeug Banner](https://github.com/user-attachments/assets/f9f869e6-b3d1-46b7-86ce-1756a9fee85f)\n\n[![flickzeug on crates.io](https://img.shields.io/crates/v/flickzeug)](https://crates.io/crates/flickzeug)\n[![Documentation (latest release)](https://docs.rs/flickzeug/badge.svg)](https://docs.rs/flickzeug/)\n[![License](https://img.shields.io/badge/license-Apache-green.svg)](LICENSE-APACHE)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE-MIT)\n\nA Rust library for computing diffs, parsing and applying patches, and performing three-way merges.\n\n\u003e **Note**: This is a fork of [diffy](https://github.com/bmwill/diffy) maintained by [prefix.dev](https://prefix.dev).\n\n## Highlights\n\n- **Fuzzy patch application**: Apply patches even when line numbers have drifted or context has slightly changed — essential for real-world patching scenarios\n- **Battle-tested**: Used in production with thousands of real-world patches from [conda-forge](https://conda-forge.org/), the community-driven collection of conda packages\n\n## Features\n\n- **Diff creation**: Compute differences between texts using Myers' diff algorithm, producing minimal edit sequences\n- **Patch parsing \u0026 formatting**: Read and write unified diff format (compatible with `git diff`, `diff -u`, etc.)\n- **Fuzzy patch application**: Apply patches with configurable fuzzy matching when line numbers don't align exactly, using similarity-based line matching\n- **Three-way merge**: Merge changes from two sources against a common ancestor, with conflict detection and multiple conflict marker styles\n- **Binary support**: All major APIs have `*_bytes` variants for working with non-UTF-8 content\n\n## Usage\n\nAdd `flickzeug` to your `Cargo.toml`:\n\n```toml\n[dependencies]\nflickzeug = \"0.4\"\n```\n\n### Creating a diff\n\n```rust\nuse flickzeug::create_patch;\n\nlet original = \"The quick brown fox\\njumps over\\nthe lazy dog.\\n\";\nlet modified = \"The quick brown cat\\njumps over\\nthe sleepy dog.\\n\";\n\nlet patch = create_patch(original, modified);\nprintln!(\"{}\", patch);\n```\n\n### Applying a patch\n\n```rust\nuse flickzeug::{apply, Patch};\n\nlet original = \"The quick brown fox\\njumps over\\nthe lazy dog.\\n\";\nlet patch_text = \"...\"; // unified diff format\n\nlet patch = Patch::from_str(patch_text).unwrap();\nlet result = apply(original, \u0026patch).unwrap();\n```\n\n### Three-way merge\n\n```rust\nuse flickzeug::merge;\n\nlet base = \"line1\\nline2\\nline3\\n\";\nlet ours = \"line1\\nmodified by us\\nline3\\n\";\nlet theirs = \"line1\\nline2\\nline3 changed\\n\";\n\nlet merged = merge(base, ours, theirs).unwrap();\n```\n\n## License\n\nThis project is available under the terms of either the [Apache 2.0 license](LICENSE-APACHE) or the [MIT license](LICENSE-MIT).\n\n## Acknowledgments\n\nThis project is a fork of [diffy](https://github.com/bmwill/diffy) by Brandon Williams. We thank the original author for their excellent work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprefix-dev%2Fflickzeug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprefix-dev%2Fflickzeug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprefix-dev%2Fflickzeug/lists"}