patch

Parse patches in the unified diff format


Keywords
diff, parse, nom, patch
License
MIT

Documentation

Patch

Checks Crates.io Badge docs.rs Lines of Code

Rust crate for parsing and producing patch files in the Unified Format.

The parser attempts to be forgiving enough to be compatible with diffs produced by programs like git. It accomplishes this by ignoring the additional code context and information provided in the diff by those programs.

See the Documentation for more information and for examples.