Squashed commit of the following: commit 7b7981d315dd7748287bedc8f6417bbc2f9cb1ee Author: Nick Platt <platt.nicholas@gmail.com> Date: Sat May 24 00:33:49 2014 -0400 Last minute touchups commit dae70f52e2b485695e8c7e2ce8d2997f571afcab Author: Nick Platt <platt.nicholas@gmail.com> Date: Fri May 23 23:43:24 2014 -0400 Minor indentation fixes commit 782a02fe2768cf9e457bb6db9e8a63615c3a4bd1 Author: Nick Platt <platt.nicholas@gmail.com> Date: Fri May 23 23:40:57 2014 -0400 Fixes for latest rust commit 51b0e59f75352bf65c89d2ab8cf0948da8404753 Author: Nick Platt <platt.nicholas@gmail.com> Date: Sun Apr 27 15:15:29 2014 -0400 Fixups commit 9efd1f4c07f4610e3067a5b2bd047eb117344cdf Author: Nick Platt <platt.nicholas@gmail.com> Date: Sun Apr 27 14:20:11 2014 -0400 Basic date and timestamp support commit a354bc9c07a6ed2cd2748f1734a1ce0f6683e58c Author: Nick Platt <platt.nicholas@gmail.com> Date: Sun Apr 27 01:37:37 2014 -0400 Primary functionality in place commit 8bbaa0caa34fbca129db0c86f32d376d6eafbe18 Author: Nick Platt <platt.nicholas@gmail.com> Date: Sat Apr 26 22:23:16 2014 -0400 Support creating files commit 5bf47c3c790b556b596d25a05cd74ca4c06b6d67 Author: Nick Platt <platt.nicholas@gmail.com> Date: Mon Apr 21 00:24:49 2014 -0400 Add touch with basic usage text
2.8 KiB
uutils coreutils
uutils is an attempt at writing universal (as in cross-platform) CLI utils in Rust. This repo is to aggregate the GNU coreutils rewrites.
Why?
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.
Build Instructions
To simply build all available utilities:
make
To build all but a few of the available utilities:
make DONT_BUILD='UTILITY_1 UTILITY_2'
To build only a few of the available utilities:
make BUILD='UTILITY_1 UTILITY_2'
Test Instructions
To simply test all available utilities:
make test
To test all but a few of the available utilities:
make DONT_TEST='UTILITY_1 UTILITY_2' test
To test only a few of the available utilities:
make TEST='UTILITY_1 UTILITY_2' test
Contribute
Contributions are very welcome, and should target Rust's master branch until Rust 1.0 is released. You may claim an item on the to-do list by following these steps:
- Open an issue named "Implement [the utility of your choice]", e.g. "Implement ls"
- State that you are working on this utility.
- Develop the utility.
- Submit a pull request and close the issue. Your pull request should include deleting the utility from the to-do list on this README.
The steps above imply that, before starting to work on a utility, you should search the issues to make sure no one else is working on it.
To do
- chcon
- chgrp
- chmod
- chown-core
- chown
- chroot
- copy
- cp-hash
- cp (some work done in
dev
branch) - csplit
- cut
- date
- dd
- df
- dircolors
- expand (in progress)
- expr
- extent-scan
- factor
- find-mount-point
- fmt
- getlimits
- group-list
- install
- join
- lbracket
- libstdbuf
- link
- ln
- ls-dir
- ls-ls
- ls-vdir
- ls
- make-prime-list
- mkfifo
- mknod
- mktemp
- mv
- nice
- nl
- nohup
- nproc
- numfmt
- od
- operand2sig
- pathchk
- pinky
- pr
- printf
- prog-fprintf
- ptx
- readlink
- realpath
- relpath
- remove
- runcon
- setuidgid
- shred
- shuf
- sort
- split
- stat
- stdbuf
- stty (in progress)
- sum
- sync
- tac-pipe
- tail
- test
- timeout
- tr
- tsort
- uname-arch
- uname-uname
- unexpand
- uniq (in progress)
- who
License
uutils is licensed under the MIT License - see the LICENSE
file for details