Paste or type to begin

Original on the left, modified on the right.

Compare two Rust files

Compare Rust source code with full syntax highlighting. Perfect for reviewing ownership changes, comparing trait implementations, or tracking crate updates. Supports lifetimes, generics, macros, async/await, and all Rust features.

Features

Frequently asked questions

Does it highlight lifetimes?
Yes. Lifetime annotations, borrow checker syntax, and ownership patterns are all highlighted.
Can I format Rust code?
Auto-formatting is not available in-browser for Rust, but you can run rustfmt locally first.
Does it support Rust macros?
Yes. Macro invocations (macro_rules!, derive macros) are syntax-highlighted.

More diff tools