-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
128 lines (110 loc) · 3.34 KB
/
Cargo.toml
File metadata and controls
128 lines (110 loc) · 3.34 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[workspace]
resolver = "2"
members = [
"crates/saorsa-desktop",
"crates/saorsa-desktop-core",
"crates/saorsa-desktop-wallet",
"crates/saorsa-desktop-sync",
"crates/saorsa-desktop-media",
"crates/saorsa-desktop-migration",
"workspace-hack",
]
[workspace.package]
version = "0.1.0"
edition = "2024"
rust-version = "1.85"
authors = ["David Irvine <[email protected]>"]
license = "GPL-3.0"
repository = "https://github.com/dirvine/saorsa-multiapp"
description = "Quantum-resistant desktop application for the Saorsa decentralized network"
[workspace.dependencies]
# Internal crates
saorsa-desktop-core = { path = "crates/saorsa-desktop-core" }
saorsa-desktop-wallet = { path = "crates/saorsa-desktop-wallet" }
saorsa-desktop-sync = { path = "crates/saorsa-desktop-sync" }
saorsa-desktop-media = { path = "crates/saorsa-desktop-media" }
saorsa-desktop-migration = { path = "crates/saorsa-desktop-migration" }
# External network crates
saorsa-node = { path = "../saorsa-node" }
# UI framework
dioxus = { version = "0.6", features = ["desktop"] }
dioxus-router = "0.6"
# Async runtime
tokio = { version = "1.42", features = ["full"] }
# Crypto
bip39 = "2.1"
argon2 = "0.5"
chacha20poly1305 = "0.10"
zeroize = { version = "1.8", features = ["derive"] }
secrecy = "0.10"
hkdf = "0.12"
sha2 = "0.10"
sha3 = "0.10"
hmac = "0.12"
secp256k1 = { version = "0.29", features = ["hashes", "rand"] }
# Storage
rusqlite = { version = "0.37", features = ["bundled"] }
rmp-serde = "1"
# Media (audio)
rodio = "0.20"
# Utilities
notify = "7"
directories = "5"
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1", features = ["v4", "serde"] }
bytes = "1.9"
getrandom = "0.2"
hex = "0.4"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Error handling
thiserror = "2"
anyhow = "1"
# Async utilities
futures = "0.3"
async-trait = "0.1"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Testing
tempfile = "3"
[workspace.lints.rust]
unsafe_code = "forbid"
missing_docs = "warn"
[workspace.lints.clippy]
all = { level = "deny", priority = -1 }
pedantic = { level = "warn", priority = -2 }
nursery = { level = "warn", priority = -2 }
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
# Allow this for Dioxus component macros that generate PartialEq
derive_partial_eq_without_eq = "allow"
# Allow common casts in storage/network code
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
# Allow non-const functions that could theoretically be const
missing_const_for_fn = "allow"
# Allow functions that should have must_use (we'll add manually where critical)
must_use_candidate = "allow"
# Allow case-sensitive extension checks (we want exact matches)
case_sensitive_file_extension_comparisons = "allow"
# Allow async functions without await (useful for trait compatibility)
unused_async = "allow"
# Allow identical match arms in pattern matching
match_same_arms = "allow"
# Allow pass by value when cloning anyway
needless_pass_by_value = "allow"
# Allow significant drop tightening (false positives with locks)
significant_drop_tightening = "allow"
# Allow option_if_let_else (sometimes match/if-let is clearer)
option_if_let_else = "allow"
[profile.dev]
opt-level = 1
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true