-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
52 lines (48 loc) · 1.49 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
[package]
name = "journald-exporter"
version = "1.0.0"
edition = "2021"
license = "Apache-2.0"
authors = ["Claudia Meadows (@dead-claudia)"]
homepage = "https://github.com/dead-claudia/journald-exporter"
[dependencies]
libc = "0.2.137"
libsystemd-sys = "0.9.3"
log = { version = "0.4.17", features = ["std"] }
notify = "5.0.0"
tiny_http = { version = "0.12.0", features = ["ssl-rustls"] }
const-str = { version = "0.5.4", features = ["std"] }
heapless = "0.7.16"
impls = "1.0.3"
rustls = "0.21.1"
base64 = "0.21.0"
once_cell = "1.17.1"
[dev-dependencies]
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
tempfile = "3.4.0"
[profile.test]
# 1. Test with release optimization settings (but retain safety checks), for increased test
# confidence.
# 2. This helps speed up some of the tests. A few of them are pretty CPU intensive, so this helps.
opt-level = "s"
lto = "thin"
codegen-units = 16
debug = true
debug-assertions = true
overflow-checks = true
[profile.release]
strip = true
opt-level = "s"
debug = false
debug-assertions = false
# Retain these for security reasons.
overflow-checks = true
# Squeeze out a few more bytes. There are relatively few dependencies, so build times aren't a
# concern with this.
lto = true
codegen-units = 1
# I use panics sparingly, and always to crash. I also am careful to join (almost) all threads to
# propagate their own panics in test. There's no reason panics should happen in practice, so I can
# just squeeze a few more bytes out of it by aborting instead.
panic = "abort"