2020-04-13 20:10:20 +00:00
# uutils / coreutils
# * see the repository LICENSE, README, and CONTRIBUTING files for more information
2020-04-13 18:01:20 +00:00
2015-07-31 22:49:14 +00:00
[ package ]
name = "uutils"
2020-04-13 20:11:29 +00:00
description = "uutils ~ universal (as in cross-platform) CLI utils, written in Rust"
2020-04-13 18:01:20 +00:00
license = "MIT"
repository = "https://github.com/uutils/coreutils"
2014-06-24 08:44:28 +00:00
version = "0.0.1"
authors = [ ]
2015-07-31 22:49:14 +00:00
build = "build.rs"
2018-08-29 01:39:50 +00:00
autotests = false
2015-07-31 22:49:14 +00:00
[ features ]
2020-01-01 19:21:51 +00:00
default = [ "feat_common_core" ]
2020-04-08 05:21:25 +00:00
## OS feature shortcodes
2020-01-01 19:21:51 +00:00
macos = [ "feat_os_unix" ]
unix = [ "feat_os_unix" ]
windows = [ "feat_os_windows" ]
2020-04-08 05:21:25 +00:00
## project-specific feature shortcodes
2020-01-01 19:21:51 +00:00
nightly = [ ]
2020-04-08 05:21:25 +00:00
test_unimplemented = [ ]
## feature sets
# "feat_os_unix" == set of utilities which can be built/run on modern/usual *nix platforms
2020-01-01 19:21:51 +00:00
feat_os_unix = [
2020-04-08 05:21:25 +00:00
"feat_common" ,
2020-01-01 19:21:51 +00:00
"feat_os_unix_musl" ,
2020-04-08 05:21:25 +00:00
"feat_os_unix_utmpx_required" ,
#
"stdbuf" ,
2020-01-01 19:21:51 +00:00
]
2020-04-08 05:21:25 +00:00
# "feat_os_unix_fuchsia" == set of utilities which can be built/run on the "Fuschia" OS (refs: <https://fuchsia.dev>; <https://en.wikipedia.org/wiki/Google_Fuchsia>)
feat_os_unix_fuchsia = [
"feat_common_core" ,
#
2016-08-21 09:04:02 +00:00
"chgrp" ,
2015-12-01 06:27:36 +00:00
"chmod" ,
2016-06-22 13:36:50 +00:00
"chown" ,
2015-11-29 22:27:54 +00:00
"du" ,
"groups" ,
"hostid" ,
2016-07-12 18:56:21 +00:00
"install" ,
2015-11-29 22:27:54 +00:00
"logname" ,
"mkfifo" ,
2016-05-07 06:57:47 +00:00
"mknod" ,
2015-11-29 22:27:54 +00:00
"nice" ,
2016-05-22 11:59:57 +00:00
"pathchk" ,
2020-04-08 05:21:25 +00:00
"stdbuf" ,
2015-11-29 22:27:54 +00:00
"tty" ,
"uname" ,
"unlink" ,
2020-01-01 19:21:51 +00:00
]
2020-04-08 05:21:25 +00:00
# "feat_os_unix_gnueabihf" == set of utilities which can be built/run on the "arm-unknown-linux-gnueabihf" target (ARMv6 Linux [hardfloat])
feat_os_unix_gnueabihf = [
"feat_common" ,
"feat_os_unix_musl" ,
"feat_os_unix_utmpx_required" ,
2015-11-29 22:27:54 +00:00
]
2020-04-08 05:21:25 +00:00
# "feat_os_unix_musl" == set of utilities which can be built/run on targets binding to the "musl" library (ref: <https://musl.libc.org/about.html>)
feat_os_unix_musl = [
"feat_common" ,
#
2016-11-24 22:54:47 +00:00
"chgrp" ,
"chmod" ,
"chown" ,
2020-04-08 05:21:25 +00:00
"chroot" ,
2016-11-24 22:54:47 +00:00
"du" ,
"groups" ,
"hostid" ,
2020-04-08 05:21:25 +00:00
"id" ,
2016-11-24 22:54:47 +00:00
"install" ,
2020-04-08 05:21:25 +00:00
"kill" ,
2016-11-24 22:54:47 +00:00
"logname" ,
"mkfifo" ,
"mknod" ,
"nice" ,
2020-04-08 05:21:25 +00:00
"numfmt" ,
"nohup" ,
2016-11-24 22:54:47 +00:00
"pathchk" ,
2020-04-08 05:21:25 +00:00
"stat" ,
"timeout" ,
"touch" ,
2016-11-24 22:54:47 +00:00
"tty" ,
"uname" ,
"unlink" ,
]
2020-04-08 05:21:25 +00:00
# "feat_os_unix_redox" == set of utilities which can be built/run on "Redox OS" (refs: <https://www.redox-os.org>; <https://en.wikipedia.org/wiki/Redox_(operating_system)>)
2020-01-01 19:21:51 +00:00
feat_os_unix_redox = [
2020-04-08 05:21:25 +00:00
"feat_common_core" ,
#
2020-01-01 19:21:51 +00:00
"uname" ,
"chmod" ,
"install" ,
]
2020-04-08 05:21:25 +00:00
# "feat_os_unix_utmpx_required" == set of utilites requiring utmp/utmpx support
# * ref: <https://wiki.musl-libc.org/faq.html#Q:-Why-is-the-utmp/wtmp-functionality-only-implemented-as-stubs?>
feat_os_unix_utmpx_required = [
"pinky" ,
"uptime" ,
"users" ,
"who" ,
]
# "feat_os_windows" == set of utilities which can be built/run on modern/usual windows platforms
feat_os_windows = [
"feat_common" , ## == "feat_os_windows_legacy" + "hostname"
]
# "feat_os_windows_legacy" == slightly restricted set of utilities which can be built/run on early windows platforms (eg, "WinXP")
2020-01-01 19:21:51 +00:00
feat_os_windows_legacy = [
2020-04-08 05:21:25 +00:00
"feat_common_core" ,
#
2020-01-01 19:21:51 +00:00
"arch" ,
"nproc" ,
"sync" ,
"touch" ,
"whoami" ,
]
2020-04-08 05:21:25 +00:00
## (common/core) feature sets
# "feat_common" == expanded set of utilities which can be built/run on the usual rust "tier 1" target platforms (ref: <https://forge.rust-lang.org/release/platform-support.html>)
2020-01-01 19:21:51 +00:00
feat_common = [
2020-04-08 05:21:25 +00:00
"feat_common_core" ,
#
2018-03-05 01:58:16 +00:00
"arch" ,
2018-03-07 00:40:08 +00:00
"hostname" ,
2017-01-15 12:48:33 +00:00
"nproc" ,
"sync" ,
2018-11-25 16:46:23 +00:00
"touch" ,
2017-01-15 12:48:33 +00:00
"whoami" ,
]
2020-04-08 05:21:25 +00:00
# "feat_common_core" == baseline core set of utilities which can be built/run on most targets
2020-01-01 19:21:51 +00:00
feat_common_core = [
2016-08-06 03:45:03 +00:00
"base32" ,
2015-11-29 22:27:54 +00:00
"base64" ,
"basename" ,
2018-03-14 17:21:12 +00:00
"cat" ,
2015-11-29 22:27:54 +00:00
"cksum" ,
"comm" ,
"cp" ,
"cut" ,
2017-03-27 03:43:29 +00:00
"date" ,
2016-05-10 15:29:29 +00:00
"dircolors" ,
2015-11-29 22:27:54 +00:00
"dirname" ,
"echo" ,
"env" ,
2016-01-06 15:34:58 +00:00
"expand" ,
2015-11-29 22:27:54 +00:00
"expr" ,
"factor" ,
"false" ,
2016-03-23 12:15:36 +00:00
"fmt" ,
2015-11-29 22:27:54 +00:00
"fold" ,
2018-03-14 22:56:16 +00:00
"hashsum" ,
2015-11-29 22:27:54 +00:00
"head" ,
2018-03-14 22:56:16 +00:00
"join" ,
2015-11-29 22:27:54 +00:00
"link" ,
2018-03-14 22:56:16 +00:00
"ln" ,
"ls" ,
"mkdir" ,
"mktemp" ,
2018-03-19 01:55:42 +00:00
"more" ,
2016-11-18 13:53:45 +00:00
"mv" ,
2018-03-14 22:56:16 +00:00
"nl" ,
2015-11-29 22:27:54 +00:00
"od" ,
"paste" ,
"printenv" ,
2015-12-24 06:11:00 +00:00
"printf" ,
2018-03-14 22:56:16 +00:00
"ptx" ,
2015-11-29 22:27:54 +00:00
"pwd" ,
"readlink" ,
"realpath" ,
"relpath" ,
"rm" ,
"rmdir" ,
"seq" ,
2018-03-17 01:47:35 +00:00
"shred" ,
2015-11-29 22:27:54 +00:00
"shuf" ,
"sleep" ,
2018-03-14 22:56:16 +00:00
"sort" ,
2015-11-29 22:27:54 +00:00
"split" ,
"sum" ,
"tac" ,
2018-03-19 04:56:26 +00:00
"tail" ,
2015-11-29 22:27:54 +00:00
"tee" ,
2018-03-17 01:39:53 +00:00
"test" ,
2016-03-23 12:15:36 +00:00
"tr" ,
2015-11-29 22:27:54 +00:00
"true" ,
"truncate" ,
"tsort" ,
2016-01-06 15:34:58 +00:00
"unexpand" ,
2015-11-29 22:27:54 +00:00
"uniq" ,
"wc" ,
"yes" ,
2015-07-31 22:49:14 +00:00
]
2018-03-12 08:20:58 +00:00
[ workspace ]
2015-07-31 22:49:14 +00:00
[ dependencies ]
2020-01-01 20:40:58 +00:00
uucore = "0.0.2"
2020-04-14 16:57:29 +00:00
arch = { optional = true , path = "src/uu/arch" }
base32 = { optional = true , path = "src/uu/base32" }
base64 = { optional = true , path = "src/uu/base64" }
basename = { optional = true , path = "src/uu/basename" }
cat = { optional = true , path = "src/uu/cat" }
chgrp = { optional = true , path = "src/uu/chgrp" }
chmod = { optional = true , path = "src/uu/chmod" }
chown = { optional = true , path = "src/uu/chown" }
chroot = { optional = true , path = "src/uu/chroot" }
cksum = { optional = true , path = "src/uu/cksum" }
comm = { optional = true , path = "src/uu/comm" }
cp = { optional = true , path = "src/uu/cp" }
cut = { optional = true , path = "src/uu/cut" }
date = { optional = true , path = "src/uu/date" }
dircolors = { optional = true , path = "src/uu/dircolors" }
dirname = { optional = true , path = "src/uu/dirname" }
du = { optional = true , path = "src/uu/du" }
echo = { optional = true , path = "src/uu/echo" }
env = { optional = true , path = "src/uu/env" }
expand = { optional = true , path = "src/uu/expand" }
expr = { optional = true , path = "src/uu/expr" }
factor = { optional = true , path = "src/uu/factor" }
false = { optional = true , path = "src/uu/false" }
fmt = { optional = true , path = "src/uu/fmt" }
fold = { optional = true , path = "src/uu/fold" }
groups = { optional = true , path = "src/uu/groups" }
hashsum = { optional = true , path = "src/uu/hashsum" }
head = { optional = true , path = "src/uu/head" }
hostid = { optional = true , path = "src/uu/hostid" }
hostname = { optional = true , path = "src/uu/hostname" }
id = { optional = true , path = "src/uu/id" }
install = { optional = true , path = "src/uu/install" }
join = { optional = true , path = "src/uu/join" }
kill = { optional = true , path = "src/uu/kill" }
link = { optional = true , path = "src/uu/link" }
ln = { optional = true , path = "src/uu/ln" }
ls = { optional = true , path = "src/uu/ls" }
logname = { optional = true , path = "src/uu/logname" }
mkdir = { optional = true , path = "src/uu/mkdir" }
mkfifo = { optional = true , path = "src/uu/mkfifo" }
mknod = { optional = true , path = "src/uu/mknod" }
mktemp = { optional = true , path = "src/uu/mktemp" }
more = { optional = true , path = "src/uu/more" }
mv = { optional = true , path = "src/uu/mv" }
nice = { optional = true , path = "src/uu/nice" }
nl = { optional = true , path = "src/uu/nl" }
nohup = { optional = true , path = "src/uu/nohup" }
nproc = { optional = true , path = "src/uu/nproc" }
numfmt = { optional = true , path = "src/uu/numfmt" }
od = { optional = true , path = "src/uu/od" }
paste = { optional = true , path = "src/uu/paste" }
pathchk = { optional = true , path = "src/uu/pathchk" }
pinky = { optional = true , path = "src/uu/pinky" }
printenv = { optional = true , path = "src/uu/printenv" }
printf = { optional = true , path = "src/uu/printf" }
ptx = { optional = true , path = "src/uu/ptx" }
pwd = { optional = true , path = "src/uu/pwd" }
readlink = { optional = true , path = "src/uu/readlink" }
realpath = { optional = true , path = "src/uu/realpath" }
relpath = { optional = true , path = "src/uu/relpath" }
rm = { optional = true , path = "src/uu/rm" }
rmdir = { optional = true , path = "src/uu/rmdir" }
seq = { optional = true , path = "src/uu/seq" }
shred = { optional = true , path = "src/uu/shred" }
shuf = { optional = true , path = "src/uu/shuf" }
sleep = { optional = true , path = "src/uu/sleep" }
sort = { optional = true , path = "src/uu/sort" }
split = { optional = true , path = "src/uu/split" }
stat = { optional = true , path = "src/uu/stat" }
stdbuf = { optional = true , path = "src/uu/stdbuf" }
sum = { optional = true , path = "src/uu/sum" }
sync = { optional = true , path = "src/uu/sync" }
tac = { optional = true , path = "src/uu/tac" }
tail = { optional = true , path = "src/uu/tail" }
tee = { optional = true , path = "src/uu/tee" }
test = { optional = true , path = "src/uu/test" }
timeout = { optional = true , path = "src/uu/timeout" }
touch = { optional = true , path = "src/uu/touch" }
tr = { optional = true , path = "src/uu/tr" }
true = { optional = true , path = "src/uu/true" }
truncate = { optional = true , path = "src/uu/truncate" }
tsort = { optional = true , path = "src/uu/tsort" }
tty = { optional = true , path = "src/uu/tty" }
uname = { optional = true , path = "src/uu/uname" }
unexpand = { optional = true , path = "src/uu/unexpand" }
uniq = { optional = true , path = "src/uu/uniq" }
unlink = { optional = true , path = "src/uu/unlink" }
uptime = { optional = true , path = "src/uu/uptime" }
users = { optional = true , path = "src/uu/users" }
wc = { optional = true , path = "src/uu/wc" }
who = { optional = true , path = "src/uu/who" }
whoami = { optional = true , path = "src/uu/whoami" }
yes = { optional = true , path = "src/uu/yes" }
2020-01-03 00:22:13 +00:00
#
# * transitive dependency via 'failure'; pin to <= v0.3.30 to avoid increasing MinSRV to v1.33.0
backtrace = ">= 0.3.3, <= 0.3.30"
2015-07-31 22:49:14 +00:00
2015-11-16 05:25:01 +00:00
[ dev-dependencies ]
2020-04-15 20:14:39 +00:00
filetime = "0.2"
lazy_static = "1.3"
libc = "0.2"
rand = "0.6"
regex = "1.0"
tempdir = "0.3"
time = "0.1"
unindent = "0.1"
2015-07-31 22:49:14 +00:00
2017-01-08 05:16:32 +00:00
[ target . 'cfg(unix)' . dev-dependencies ]
2019-05-02 04:07:13 +00:00
# FIXME: this should use the normal users crate, but it conflicts with the users utility
rust-users = { git = "https://github.com/uutils/rust-users" }
2017-07-15 19:03:43 +00:00
unix_socket = "0.5.0"
2017-01-08 05:16:32 +00:00
2015-07-31 22:49:14 +00:00
[ [ bin ] ]
2015-12-08 02:42:08 +00:00
name = "uutils"
2020-04-14 16:57:29 +00:00
path = "src/bin/uutils.rs"
2016-05-22 07:46:54 +00:00
[ [ test ] ]
name = "tests"
2020-01-01 20:40:58 +00:00
[ patch . crates-io ]
2020-04-14 22:00:38 +00:00
uucore = { git = "https://github.com/uutils/uucore/" , tag = "0.0.2" }