mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
b90d253584
For coreutils, there are two build artifacts: 1. multicall executable (each utility is a separate static library) 2. individual utilities (still separate library with main wrapper) To avoid namespace collision, each utility crate is defined as "uu_{CMD}". The end user only sees the original utility name. This simplifies build.rs. Also, the thin wrapper for the main() function is no longer contained in the crate. It has been separated into a dedicated file. This was necessary to work around Cargo's need for the crate name attribute to match the name in the respective Cargo.toml.
181 lines
4.6 KiB
TOML
181 lines
4.6 KiB
TOML
[package]
|
|
name = "uutils"
|
|
version = "0.0.1"
|
|
authors = []
|
|
build = "build.rs"
|
|
|
|
[features]
|
|
unix = [
|
|
"chmod",
|
|
"chroot",
|
|
"du",
|
|
"groups",
|
|
"hostid",
|
|
"hostname",
|
|
"id",
|
|
"kill",
|
|
"logname",
|
|
"mkfifo",
|
|
"mv",
|
|
"nice",
|
|
"nohup",
|
|
"stdbuf",
|
|
"timeout",
|
|
"touch",
|
|
"tty",
|
|
"uname",
|
|
"unlink",
|
|
"uptime",
|
|
"users",
|
|
]
|
|
generic = [
|
|
"base64",
|
|
"basename",
|
|
"cat",
|
|
"cksum",
|
|
"comm",
|
|
"cp",
|
|
"cut",
|
|
"dirname",
|
|
"echo",
|
|
"env",
|
|
"expand",
|
|
"expr",
|
|
"factor",
|
|
"false",
|
|
"fmt",
|
|
"fold",
|
|
"hashsum",
|
|
"head",
|
|
"link",
|
|
"ln",
|
|
"mkdir",
|
|
"nl",
|
|
"nproc",
|
|
"od",
|
|
"paste",
|
|
"printenv",
|
|
"ptx",
|
|
"pwd",
|
|
"readlink",
|
|
"realpath",
|
|
"relpath",
|
|
"rm",
|
|
"rmdir",
|
|
"seq",
|
|
"shuf",
|
|
"sleep",
|
|
"sort",
|
|
"split",
|
|
"sum",
|
|
"sync",
|
|
"tac",
|
|
"tail",
|
|
"tee",
|
|
"test",
|
|
"tr",
|
|
"true",
|
|
"truncate",
|
|
"tsort",
|
|
"unexpand",
|
|
"uniq",
|
|
"wc",
|
|
"whoami",
|
|
"yes",
|
|
]
|
|
default = ["generic", "unix"]
|
|
|
|
[dependencies]
|
|
uucore = { path="src/uucore" }
|
|
base64 = { optional=true, path="src/base64" }
|
|
basename = { optional=true, path="src/basename" }
|
|
cat = { optional=true, path="src/cat" }
|
|
chmod = { optional=true, path="src/chmod" }
|
|
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" }
|
|
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" }
|
|
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" }
|
|
kill = { optional=true, path="src/kill" }
|
|
link = { optional=true, path="src/link" }
|
|
ln = { optional=true, path="src/ln" }
|
|
logname = { optional=true, path="src/logname" }
|
|
mkdir = { optional=true, path="src/mkdir" }
|
|
mkfifo = { optional=true, path="src/mkfifo" }
|
|
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" }
|
|
printenv = { optional=true, path="src/printenv" }
|
|
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" }
|
|
shuf = { optional=true, path="src/shuf" }
|
|
sleep = { optional=true, path="src/sleep" }
|
|
sort = { optional=true, path="src/sort" }
|
|
split = { optional=true, path="src/split" }
|
|
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 = "*"
|
|
kernel32-sys = "*"
|
|
winapi = "*"
|
|
filetime = "*"
|
|
libc = "*"
|
|
memchr = "*"
|
|
primal = "*"
|
|
aho-corasick= "*"
|
|
regex-syntax= "*"
|
|
regex="*"
|
|
rand="*"
|
|
tempdir="*"
|
|
|
|
[[bin]]
|
|
name = "uutils"
|
|
path = "src/uutils/uutils.rs"
|