Skip to content

A simple terminal-based diff tool written in Rust

License

Notifications You must be signed in to change notification settings

shubham0204/diff-tool.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banner

diff Tool In Rust

diff_tool

Setup

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.

Useful Resources