coreutils/Cargo.toml

207 lines
5.3 KiB
TOML
Raw Normal View History

[package]
name = "uutils"
2014-06-24 08:44:28 +00:00
version = "0.0.1"
authors = []
build = "build.rs"
[features]
unix = [
"arch",
"chmod",
2016-06-22 13:36:50 +00:00
"chown",
"chroot",
"du",
"groups",
"hostid",
"hostname",
"id",
"install",
"kill",
"logname",
"mkfifo",
2016-05-07 06:57:47 +00:00
"mknod",
"mv",
"nice",
"nohup",
"pathchk",
2016-07-12 10:40:48 +00:00
"pinky",
2016-06-01 12:20:32 +00:00
"stat",
"stdbuf",
"timeout",
"touch",
"tty",
"uname",
"unlink",
"uptime",
"users",
]
generic = [
2016-08-06 03:45:03 +00:00
"base32",
"base64",
"basename",
"cat",
"cksum",
"comm",
"cp",
"cut",
2016-05-10 15:29:29 +00:00
"dircolors",
"dirname",
"echo",
"env",
2016-01-06 15:34:58 +00:00
"expand",
"expr",
"factor",
"false",
"fmt",
"fold",
"hashsum",
"head",
"link",
"ln",
2016-03-25 21:00:27 +00:00
"ls",
"mkdir",
2016-05-22 22:48:12 +00:00
"mktemp",
"nl",
"nproc",
"od",
"paste",
"printenv",
2015-12-24 06:11:00 +00:00
"printf",
2016-01-06 15:20:59 +00:00
"ptx",
"pwd",
"readlink",
"realpath",
"relpath",
"rm",
"rmdir",
"seq",
2015-12-29 07:18:19 +00:00
"shred",
"shuf",
"sleep",
"sort",
"split",
"sum",
"sync",
"tac",
"tail",
"tee",
"test",
"tr",
"true",
"truncate",
"tsort",
2016-01-06 15:34:58 +00:00
"unexpand",
"uniq",
"wc",
"whoami",
"yes",
]
test_unimplemented = []
2016-07-29 11:50:59 +00:00
nightly = []
default = ["generic", "unix"]
[dependencies]
uucore = { path="src/uucore" }
arch = { optional=true, path="src/arch" }
2016-08-06 03:45:03 +00:00
base32 = { optional=true, path="src/base32" }
base64 = { optional=true, path="src/base64" }
basename = { optional=true, path="src/basename" }
cat = { optional=true, path="src/cat" }
chmod = { optional=true, path="src/chmod" }
2016-06-22 13:36:50 +00:00
chown = { optional=true, path="src/chown" }
chroot = { optional=true, path="src/chroot" }
cksum = { optional=true, path="src/cksum" }
comm = { optional=true, path="src/comm" }
cp = { optional=true, path="src/cp" }
cut = { optional=true, path="src/cut" }
2016-05-10 15:29:29 +00:00
dircolors= { optional=true, path="src/dircolors" }
dirname = { optional=true, path="src/dirname" }
du = { optional=true, path="src/du" }
echo = { optional=true, path="src/echo" }
env = { optional=true, path="src/env" }
expand = { optional=true, path="src/expand" }
Implement expr. Implemented as follows: Usage: expr EXPRESSION or: expr OPTION --help display this help and exit --version output version information and exit Print the value of EXPRESSION to standard output. A blank line below separates increasing precedence groups. EXPRESSION may be: ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2 ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0 ARG1 < ARG2 ARG1 is less than ARG2 ARG1 <= ARG2 ARG1 is less than or equal to ARG2 ARG1 = ARG2 ARG1 is equal to ARG2 ARG1 != ARG2 ARG1 is unequal to ARG2 ARG1 >= ARG2 ARG1 is greater than or equal to ARG2 ARG1 > ARG2 ARG1 is greater than ARG2 ARG1 + ARG2 arithmetic sum of ARG1 and ARG2 ARG1 - ARG2 arithmetic difference of ARG1 and ARG2 ARG1 * ARG2 arithmetic product of ARG1 and ARG2 ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2 ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2 STRING : REGEXP [NOT IMPLEMENTED] anchored pattern match of REGEXP in STRING match STRING REGEXP [NOT IMPLEMENTED] same as STRING : REGEXP substr STRING POS LENGTH [NOT IMPLEMENTED] substring of STRING, POS counted from 1 index STRING CHARS [NOT IMPLEMENTED] index in STRING where any CHARS is found, or 0 length STRING [NOT IMPLEMENTED] length of STRING + TOKEN interpret TOKEN as a string, even if it is a keyword like 'match' or an operator like '/' ( EXPRESSION ) value of EXPRESSION Beware that many operators need to be escaped or quoted for shells. Comparisons are arithmetic if both ARGs are numbers, else lexicographical. Pattern matches return the string matched between \( and \) or null; if \( and \) are not used, they return the number of characters matched or 0. Exit status is 0 if EXPRESSION is neither null nor 0, 1 if EXPRESSION is null or 0, 2 if EXPRESSION is syntactically invalid, and 3 if an error occurred. Environment variables: * EXPR_DEBUG_TOKENS=1 dump expression's tokens * EXPR_DEBUG_RPN=1 dump expression represented in reverse polish notation * EXPR_DEBUG_SYA_STEP=1 dump each parser step * EXPR_DEBUG_AST=1 dump expression represented abstract syntax tree
2015-10-09 09:31:25 +00:00
expr = { optional=true, path="src/expr" }
factor = { optional=true, path="src/factor" }
false = { optional=true, path="src/false" }
fmt = { optional=true, path="src/fmt" }
fold = { optional=true, path="src/fold" }
groups = { optional=true, path="src/groups" }
hashsum = { optional=true, path="src/hashsum" }
head = { optional=true, path="src/head" }
hostid = { optional=true, path="src/hostid" }
hostname = { optional=true, path="src/hostname" }
id = { optional=true, path="src/id" }
install = { optional=true, path="src/install" }
kill = { optional=true, path="src/kill" }
link = { optional=true, path="src/link" }
ln = { optional=true, path="src/ln" }
2016-03-25 21:00:27 +00:00
ls = { optional=true, path="src/ls" }
logname = { optional=true, path="src/logname" }
mkdir = { optional=true, path="src/mkdir" }
mkfifo = { optional=true, path="src/mkfifo" }
2016-05-07 06:57:47 +00:00
mknod = { optional=true, path="src/mknod" }
mktemp = { optional=true, path="src/mktemp" }
mv = { optional=true, path="src/mv" }
nice = { optional=true, path="src/nice" }
nl = { optional=true, path="src/nl" }
nohup = { optional=true, path="src/nohup" }
nproc = { optional=true, path="src/nproc" }
od = { optional=true, path="src/od" }
paste = { optional=true, path="src/paste" }
pathchk = { optional=true, path="src/pathchk" }
2016-07-12 10:40:48 +00:00
pinky = { optional=true, path="src/pinky" }
printenv = { optional=true, path="src/printenv" }
2015-12-24 06:11:00 +00:00
printf = { optional=true, path="src/printf" }
ptx = { optional=true, path="src/ptx" }
pwd = { optional=true, path="src/pwd" }
readlink = { optional=true, path="src/readlink" }
realpath = { optional=true, path="src/realpath" }
relpath = { optional=true, path="src/relpath" }
rm = { optional=true, path="src/rm" }
rmdir = { optional=true, path="src/rmdir" }
seq = { optional=true, path="src/seq" }
2015-12-29 07:18:19 +00:00
shred = { optional=true, path="src/shred" }
shuf = { optional=true, path="src/shuf" }
sleep = { optional=true, path="src/sleep" }
sort = { optional=true, path="src/sort" }
split = { optional=true, path="src/split" }
2016-06-01 12:20:32 +00:00
stat = { optional=true, path="src/stat" }
stdbuf = { optional=true, path="src/stdbuf" }
sum = { optional=true, path="src/sum" }
sync = { optional=true, path="src/sync" }
tac = { optional=true, path="src/tac" }
tail = { optional=true, path="src/tail" }
tee = { optional=true, path="src/tee" }
test = { optional=true, path="src/test" }
timeout = { optional=true, path="src/timeout" }
touch = { optional=true, path="src/touch" }
tr = { optional=true, path="src/tr" }
true = { optional=true, path="src/true" }
truncate = { optional=true, path="src/truncate" }
tsort = { optional=true, path="src/tsort" }
tty = { optional=true, path="src/tty" }
uname = { optional=true, path="src/uname" }
unexpand = { optional=true, path="src/unexpand" }
uniq = { optional=true, path="src/uniq" }
unlink = { optional=true, path="src/unlink" }
uptime = { optional=true, path="src/uptime" }
users = { optional=true, path="src/users" }
wc = { optional=true, path="src/wc" }
whoami = { optional=true, path="src/whoami" }
yes = { optional=true, path="src/yes" }
[dev-dependencies]
time = "*"
filetime = "*"
libc = "*"
regex="*"
rand="*"
tempdir="*"
[[bin]]
name = "uutils"
path = "src/uutils/uutils.rs"
[[test]]
name = "tests"