Many GNU, Linux and other utils are pretty awesome, and obviously some effort has been spent in the past to port them to Windows. However, those projects are either old, abandoned, hosted on CVS, written in platform-specific C, etc. Rust provides a good, platform-agnostic way of writing systems utils that are easy to compile anywhere, and this is as good a way as any to try and learn it.
- Rust (
cargo
,rustc
)
$ git clone https://github.com/satyendra-ops/GNU-Coreutils-using-rust.git
$ cd GNU-Coreutils-using-rust-master
Building uutils using Cargo is easy because the process is the same as for every other Rust program:
$ cd cat
$ cargo build --release
$ cargo run [OPTIONS] [FILES...]
$ cd tsort
$ cargo build --release
$ cargo run [FILE]
$ cd whoami
$ cargo build --release
$ cargo run
$ cd id
$ cargo build --release
$ cargo run [OPTIONS] [USERNAME]