-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathCargo.toml
118 lines (102 loc) · 2.29 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[package]
name = "mesabox"
version = "0.1.0"
authors = ["The MesaLock Linux Developers"]
description = "A collection of utilities important to basic system functionality"
autotests = false
[features]
arch = ["libmesabox/arch"]
base32 = ["libmesabox/base32"]
base64 = ["libmesabox/base64"]
yes = ["libmesabox/yes"]
gnu = [
"arch",
"base32",
"base64",
"yes"
]
getty = ["libmesabox/getty"]
loginutils = [
"getty"
]
# FIXME: this is only like this because we can't rename dependencies and we use the same macro in
# the tests that libmesabox uses to build
tar_util = ["libmesabox/tar_util"]
lsb = [
"tar_util"
]
ping = ["libmesabox/ping"]
networking = [
"ping"
]
cat = ["libmesabox/cat"]
chmod = ["libmesabox/chmod"]
echo = ["libmesabox/echo"]
false = ["libmesabox/false"]
head = ["libmesabox/head"]
sh = ["libmesabox/sh", "env_logger"]
sleep = ["libmesabox/sleep"]
true = ["libmesabox/true"]
uname = ["libmesabox/uname"]
posix = [
"cat",
"chmod",
"echo",
"false",
"head",
"sh",
"sleep",
"true",
"uname"
]
init = ["libmesabox/init"]
sysinit = [
"init"
]
# utilities that work on Unix
unix = [
"gnu",
"loginutils",
"lsb",
"networking",
"posix",
"sysinit"
]
# utilities that work on Windows
windows = [
"gnu",
"cat",
"echo",
"false",
"head",
"sleep",
"true",
"uname"
]
# the following are real features (rather than utilities)
# used to prioritize latency over throughput in utilites that care
latency = ["libmesabox/latency"]
# use dynamic dispatch rather than static dispatch (makes utilities slower, but sometimes smaller
# as well). this is preferred to no-dynamic if both are specified
full-dynamic = ["libmesabox/full-dynamic"]
# only use static dispatch (this will lead to dramatically larger compile times and binary sizes)
no-dynamic = ["libmesabox/no-dynamic"]
system-alloc = []
default = ["unix"]
[workspace]
[dependencies]
libmesabox = { path = "libmesabox", default-features = false }
env_logger = { version = "0.5.11", optional = true, default-features = false }
[dev-dependencies]
tempfile = "3.0.2"
libc = "0.2.40"
lazy_static = "1.0.1"
assert_cmd = "0.9.0"
assert_fs = "0.9.0"
predicates = "0.9.0"
timebomb = "0.1.2"
[profile.release]
lto = true
panic = "abort"
[[test]]
name = "tests"