To compile the tool, make sure that you have a Rust toolchain installation targeted for your system. Once installed,
$> git clone https://github.com/shubham0204/diff-tool.rs
$> cd diff-tool.rs
$> cargo build --release
$> cp target/release/diff .
The diff
tool is now available in the root directory of the project. Use text files from samples
to test,
Usage: ./diff <filepath1> <filepath2>
$> ./diff samples/sample_02/script1.kt samples/sample_02/script2.kt
Important
Most Linux distros come with a builtin diff
tool installed. As both, the executable from this project and the pre-installed diff
tool have the same name, use ./diff
to use the project's executable.
codingchallenges.fyi
- Programiz: Longest Common Subsequence
- Wikipedia: Longest Common Subsequence
- Write your own diff for fun
- Enjoy Algorithms: Longest Common Subsequence
- Reddit discussions on
diff-tool.rs
:r/rust
andr/learnrust