-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
136 lines (108 loc) · 3.55 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[package]
name = "sysapi"
version = "0.12.7"
authors = ["Daniel (dmilith) Dettlaff <[email protected]>"]
edition = '2018'
build = "build.rs"
[lib]
name = "sysapi"
path = "src/lib.rs"
crate-type = ["rlib"]
[[bin]]
name = "sysapi"
path = "src/sysapi.rs"
[[bin]]
name = "sysapi_bench_kernel_kvm-procstat-uid65-sockstat"
path = "src/benches/kernel_kvm-procstat-uid65-sockstat.rs"
[[bin]]
name = "sysapi_bench_kernel_kvm-procstat-uid65"
path = "src/benches/kernel_kvm-procstat-uid65.rs"
[[example]]
name = "psuid65tojson"
path = "src/examples/psuid65tojson.rs"
[dependencies]
gotham = "0.3"
gotham_derive = "0.3"
hyper = { version = "0.12", features = [] }
log = "0.4"
fern = { version = "0.5", features = ["colored"] }
colored = "1.6"
serde = "1"
serde_derive = "1"
serde_json = "1"
futures = "0.1"
tokio = "0.1"
mime = "0.3"
domain = "0.2"
abstract-ns = "0.4"
ns-std-threaded = "0.3"
lazy_static = "1.1"
uuid = { version = "0.6", features = ["v4"] }
rand = "0.4"
regex = "0.2"
chrono = "0.4"
glob = "0.2"
hostname = "0.1"
atomicwrites = "0.2"
systemstat = "0.1"
libc = "0.2"
libloading = "0.5"
bencher = "0.1"
jemallocator = "0.1.8"
#
# Explicit Project Setup details:
#
# The release profile, used for `cargo build --release`.
[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
panic = 'abort'
incremental = false
overflow-checks = true
# The benchmarking profile, used for `cargo bench` and `cargo test --release`.
[profile.bench]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
incremental = false
overflow-checks = true
# The testing profile, used for `cargo test`.
[profile.test]
opt-level = 1
debug = 2
rpath = false
lto = false
debug-assertions = true
codegen-units = 12
incremental = true
overflow-checks = true
# The development (default) profile, used for `cargo build`.
[profile.dev]
opt-level = 0 # controls the `--opt-level` the compiler builds with.
# 0-1 is good for debugging. 2 is well-optimized. Max is 3.
# 's' attempts to reduce size, 'z' reduces size even more.
debug = 2 # (u32 or bool) Include debug information (debug symbols).
# Equivalent to `-C debuginfo=2` compiler flag.
debug-assertions = true # controls whether debug assertions are enabled
# (e.g. debug_assert!() and arithmetic overflow checks)
rpath = false # controls whether compiler should set loader paths.
# If true, passes `-C rpath` flag to the compiler.
lto = false # Link Time Optimization usually reduces size of binaries
# and static libraries. Increases compilation time.
# If true, passes `-C lto` flag to the compiler, and if a
# string is specified like 'thin' then `-C lto=thin` will
# be passed.
codegen-units = 8 # if > 1 enables parallel code generation which improves
# compile times, but prevents some optimizations.
# Passes `-C codegen-units`.
panic = 'unwind' # panic strategy (`-C panic=...`), can also be 'abort'
incremental = true # whether or not incremental compilation is enabled
overflow-checks = true # use overflow checks for integer arithmetic.
# Passes the `-C overflow-checks=...` flag to the compiler.