Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
112 lines (102 loc) · 3.99 KB
/
Copy pathCargo.toml
File metadata and controls
112 lines (102 loc) · 3.99 KB
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
# Cargo workspace for the Interface Engine.
# Every directory under crates/ is a member. Member crates reference shared
# dependencies with `{ workspace = true }`; crate-local additions go in the
# member's own Cargo.toml. The console's Tauri crate (console/src-tauri) is a
# separate workspace root.
[workspace]
resolver = "3"
members = ["crates/*"]
[workspace.package]
version = "0.2.0"
edition = "2024"
rust-version = "1.97"
license = "AGPL-3.0-only"
publish = false
[workspace.dependencies]
# Internal crates
packie-core = { path = "crates/packie-core" }
packie-config = { path = "crates/packie-config" }
packie-diagnostics = { path = "crates/packie-diagnostics" }
packie-ipc = { path = "crates/packie-ipc" }
packie-engine = { path = "crates/packie-engine" }
packie-transport = { path = "crates/packie-transport" }
packie-host = { path = "crates/packie-host" }
packie-routing = { path = "crates/packie-routing" }
packie-notify = { path = "crates/packie-notify" }
# External crates
# Base64 for embedded PDF reports and the PDF test tool.
base64 = "0.23"
clap = { version = "4.6.7", features = ["derive"] }
csv = "1.4.0"
fs4 = { version = "1.1.0", default-features = false, features = ["sync"] }
interprocess = { version = "2.4.7", features = ["tokio"] }
jiff = { version = "0.2.39", features = ["serde"] }
keyring = "4.2.0"
# SMTP alert e-mail; rustls only (no OpenSSL, no native-tls).
lettre = { version = "0.11.24", default-features = false, features = ["builder", "smtp-transport", "tokio1", "tokio1-rustls-tls"] }
notify = "8.2.1"
nix = { version = "0.31.3", default-features = false, features = ["user"] }
# Reads secret values from the terminal without echo (`packie secrets set`).
rpassword = "7.5.4"
rusqlite = { version = "0.41.1", features = ["bundled"] }
russh = { version = "0.65.4", default-features = false, features = ["ring", "rsa"] }
russh-sftp = "3.0.1"
rust_decimal = { version = "1.43.0", default-features = false, features = ["std", "serde"] }
serde = { version = "1.0.229", features = ["derive"] }
serde_json = { version = "1.0.154", features = ["float_roundtrip"] }
serde_path_to_error = "0.1.20"
serialport = { version = "4.10.1", default-features = false }
socket2 = { version = "0.6.5", features = ["all"] }
thiserror = "2.0.21"
tokio = { version = "1.54.1", features = ["rt-multi-thread", "macros", "net", "io-util", "time", "sync", "fs", "signal"] }
tracing = "0.1.44"
tracing-appender = "0.2.5"
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "json"] }
ts-rs = { version = "12.0.1", features = ["no-serde-warnings"] }
windows-service = "0.8.1"
winsafe = { version = "0.0.29", features = ["advapi"] }
# Blocking HTTP client for the alert webhook; rustls only.
ureq = { version = "3.5.1", default-features = false, features = ["rustls"] }
uuid = { version = "1.29.0", features = ["v7", "serde"] }
# Dev-only crates
insta = "1.49.0"
proptest = "1.12.0"
# Random RSA keys for the SFTP tests (the version ssh-key generates keys with).
rand = "0.10.3"
tempfile = "3.27.0"
[workspace.lints.rust]
# deny, not forbid: the simulator's Windows stop needs one audited call
unsafe_code = "deny"
unreachable_pub = "warn"
unused_must_use = "deny"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
# Errors are values: no panicking shortcuts outside tests (clippy.toml allows them in tests).
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
dbg_macro = "deny"
# Output goes through `tracing`, never stdout/stderr.
print_stdout = "deny"
print_stderr = "deny"
# Clinical values are exact decimals; floats are never used for them.
float_arithmetic = "warn"
float_cmp = "deny"
# Complexity budgets (thresholds in clippy.toml); CI runs clippy with -D warnings.
cognitive_complexity = "warn"
too_many_lines = "warn"
too_many_arguments = "warn"
excessive_nesting = "warn"
large_enum_variant = "warn"
redundant_clone = "warn"
needless_collect = "warn"
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 2
[profile.release]
lto = "thin"
codegen-units = 1
strip = "debuginfo"