-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathCargo.toml
More file actions
164 lines (152 loc) · 5.18 KB
/
Copy pathCargo.toml
File metadata and controls
164 lines (152 loc) · 5.18 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[workspace]
exclude = ["crates/json-sample-derive", "extensions/*"]
members = [
# "apps/cloud",
# "apps/desktop/crates/*",
# "apps/desktop/src-tauri",
# "apps/mobile/modules/sd-core/android/crate",
# "apps/mobile/modules/sd-core/core",
# "apps/mobile/modules/sd-core/ios/crate",
"apps/mobile/modules/sd-mobile-core/core",
"apps/server",
"apps/cli",
# "apps/gpui-photo-grid",
"apps/tauri/sd-tauri-core",
"apps/tauri/src-tauri",
"core",
"core/benchmarks",
"crates/*",
"xtask"
]
# Exclude Tauri from default builds - it requires frontend to be built first
# Use `cd apps/tauri && bun run tauri:dev` to run the Tauri app
default-members = [
"apps/server",
"apps/cli",
"core",
"core/benchmarks",
"crates/*",
"xtask"
]
resolver = "2"
[workspace.package]
edition = "2021"
license = "FSL-1.1-ALv2"
repository = "https://github.com/spacedriveapp/spacedrive"
rust-version = "1.81"
[workspace.dependencies]
# First party dependencies
# sd-cloud-schema = { git = "https://github.com/spacedriveapp/cloud-services-schema", rev = "515ba740ea" }
# Third party dependencies used by one or more of our crates
anyhow = "1.0.94"
async-channel = "2.3"
async-stream = "0.3.6"
async-trait = "0.1.83"
axum = "0.7.9"
axum-extra = "0.9.6"
base64 = "0.22.1"
blake3 = "1.5.5"
bytes = "1.9.0"
chrono = "0.4.39"
ed25519-dalek = "2.1"
flume = "0.11.0"
futures = "0.3.31"
futures-concurrency = "7.6.2"
globset = "0.4.15"
http = "1.2.0"
hyper = "1.5.2"
image = "0.25.5"
iroh = "0.95.1"
itertools = "0.13.0"
lending-stream = "1.0"
libc = "0.2.169"
mimalloc = "0.1.43"
normpath = "1.3"
pin-project-lite = "0.2.15"
quic-rpc = "0.17.3"
rand = "0.9.0-alpha.2"
regex = "1.11.1"
reqwest = { version = "0.12.9", default-features = false }
rmp = "0.8.14"
rmp-serde = "1.3"
rmpv = { version = "1.3", features = ["with-serde"] }
serde = "1.0.216"
serde_json = "1.0.133"
specta = { git = "https://github.com/jamiepine/specta", branch = "main" }
strum = "0.26"
strum_macros = "0.26"
tempfile = "3.14.0"
thiserror = "2.0.8"
tokio = "1.42.0"
tokio-stream = "0.1.17"
tokio-util = "0.7.13"
tracing = "0.1.41"
tracing-subscriber = "0.3.19"
tracing-test = "0.2.5"
uhlc = "0.8.0" # Must follow version used by specta
uuid = "1.10" # Must follow version used by specta
webp = "0.3.0"
zeroize = "1.8"
sqlx = { version = "0.8", default-features = false, features = ["sqlite", "runtime-tokio"] }
lancedb = "0.15"
fastembed = "4"
arrow-array = "53.3"
arrow-schema = "53.3"
indexmap = "2.7"
dashmap = "6.1"
toml = "0.8"
ort = { version = "2.0.0-rc.9", default-features = false, features = ["download-binaries", "tls-native"] }
# Proper IOS Support
# TODO: Fix the fork - it has compilation errors with TimerFuture
# [patch.crates-io.if-watch]
# git = "https://github.com/spacedriveapp/if-watch.git"
# rev = "a92c17d3f8"
# Patches removed - project migrated from libp2p to iroh
[profile.dev]
# Make compilation faster on macOS
codegen-units = 256
debug = 0
incremental = true
lto = false
opt-level = 0
split-debuginfo = "unpacked"
strip = "none"
[profile.dev-debug]
inherits = "dev"
# Enables debugger
codegen-units = 256
debug = "full"
incremental = true
lto = "off"
opt-level = 0
# split-debuginfo = "none"
strip = "none"
# Set the settings for build scripts and proc-macros.
[profile.dev.build-override]
opt-level = 3
# Set the default for dependencies, except workspace members.
[profile.dev.package."*"]
incremental = false
opt-level = 3
# Set the default for dependencies, except workspace members.
[profile.dev-debug.package."*"]
debug = "full"
incremental = false
inherits = "dev"
opt-level = 3
# Optimize release builds
[profile.release]
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
panic = "unwind" # Sadly we need unwind to avoid unexpected crashes on third party crates
strip = true # Remove debug symbols
# Fast mobile development profile - trades binary size for build speed
# Use with: cargo build --profile mobile-dev
# For production mobile releases, use --release instead
[profile.mobile-dev]
inherits = "release"
codegen-units = 16 # Allow parallel compilation (vs 1 in release)
lto = false # Disable link-time optimization (saves 15-20 min per arch)
opt-level = 2 # Good optimization without extreme size focus
strip = true # Still remove debug symbols