Install rustup on your system https://rustup.rs/
Clone the repo
git clone https://github.com/skep1337/portscan
Go into the directory and build
cd portscan
cargo build -r
The executable will be in target/release
On Windows, put the exe into System32 and run it from command prompt
On Linux, copy the executable to /usr/bin
# mv target/release/portscan /usr/bin