-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
165 lines (157 loc) · 6.05 KB
/
Cargo.toml
File metadata and controls
165 lines (157 loc) · 6.05 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
165
[package]
name = "soar"
# Version is derived from git tags at build time via vergen in build.rs
# This placeholder is required by Cargo but not used at runtime
version = "0.0.0-git"
edition = "2024"
resolver = "2"
[features]
# Feature for musl static builds - bundles libpq and OpenSSL from source
# This includes all static libraries needed for fully static binaries
bundled-postgres = ["pq-sys/bundled", "dep:openssl", "openssl/vendored"]
[target.'cfg(not(target_env = "msvc"))'.dependencies]
mimalloc = "0.1"
[dependencies]
anyhow = "1.0"
argon2 = "0.5"
async-nats = "0.46"
async-trait = "0.1"
bigdecimal = { version = "0.4", features = ["serde"] }
axum = { version = "0.8.8", features = ["macros", "ws"] }
axum-extra = { version = "0.12.5", features = ["typed-header"] }
bytes = "=1.11.1"
http-body = "1.0"
http-body-util = "0.1"
pin-project = "1.1"
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4.6", features = ["derive"] }
dashmap = "6.1"
dotenvy = { version = "0.15" }
fake = { version = "5.0.0", features = ["derive", "chrono", "uuid"] }
google_maps = { version = "3.9.4", features = [
"geocoding",
"elevation",
"reqwest-rustls-tls",
], default-features = false }
h3o = { version = "0.9", features = ["geo"] }
geo = "0.30"
include_dir = "0.7"
jsonwebtoken = { version = "10.3.0", features = ["rust_crypto"] }
lettre = { version = "0.11", features = [
"tokio1-rustls-tls",
"smtp-transport",
"builder",
], default-features = false }
libc = "0.2"
mime_guess = "2.0"
rand = "0.10"
rayon = "1.10"
num-traits = "0.2"
ogn-parser = { git = "https://github.com/hut8/ogn-parser-rs", tag = "v0.3.17" }
once_cell = "1.21"
regex = "1.12"
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
rs1090 = "0.5.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
csv = "1.3"
diesel = { version = "2.3", features = [
"postgres",
"chrono",
"uuid",
"serde_json",
"r2d2",
"numeric",
"64-column-tables",
] }
# For musl static builds: compile libpq from source with all internal static libraries
# This avoids the missing libpgcommon.a and libpgport.a that aren't in system packages
pq-sys = { version = "0.7", default-features = false }
# OpenSSL is needed by bundled libpq - we use vendored feature for musl static builds
openssl = { version = "0.10", optional = true }
diesel_migrations = "2.3"
diesel-derive-enum = { version = "3.0.0-beta.1", features = ["postgres"] }
r2d2 = "0.8"
flate2 = "1.1"
tokio = { version = "1.50", features = ["rt-multi-thread", "macros", "fs", "sync", "time", "signal", "tracing"] }
console-subscriber = "0.5"
tower = "0.5"
tower-http = { version = "0.6", features = ["fs", "trace", "cors"] }
ts-rs = { version = "12.0.1", features = ["chrono-impl", "uuid-impl", "serde-json-impl", "format"] }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["env-filter", "tracing-log"] }
sentry = { version = "0.47", default-features = false, features = ["backtrace", "contexts", "panic", "tracing", "reqwest", "rustls"] }
sentry-tracing = "0.47"
uuid = { version = "1.22", features = ["v4", "v7", "serde"] }
zstd = "0.13"
axum-tungstenite = "0.3.0"
futures-util = "0.3.32"
# OpenTelemetry for distributed tracing and observability
opentelemetry = { version = "0.31", features = ["trace", "metrics", "logs"] }
opentelemetry-otlp = { version = "0.31", features = ["trace", "metrics", "logs", "grpc-tonic"] }
opentelemetry_sdk = { version = "0.31", features = ["trace", "metrics", "logs", "rt-tokio"] }
opentelemetry-semantic-conventions = "0.31"
opentelemetry-appender-tracing = "0.31"
tracing-opentelemetry = "0.32"
postgis_diesel = { version = "3.1.0", features = ["serde", "serde_geojson"] }
rust_decimal = { version = "1.40", default-features = false, features = ["std", "serde", "borsh"] }
zip = "8.2"
flydent = "0.6.0"
flume = { version = "0.12", features = ["async"] }
sitemap-rs = "0.4.0"
metrics = "0.24"
metrics-exporter-prometheus = "0.18"
flarmnet = { git = "https://github.com/hut8/flarmnet-rs", default-features = false, features = ["xcsoar"] }
pprof = { version = "0.15", features = ["flamegraph", "protobuf-codec", "frame-pointer"] }
lru = "0.16"
moka = { version = "0.12", features = ["future", "sync"] }
sha2 = "0.10.9"
scraper = "0.25"
shapefile = "0.7"
kml = "0.13"
hex = "0.4.3"
aws-config = { version = "1.8", features = ["behavior-version-latest"] }
aws-sdk-s3 = "1.126"
prost = "0.14"
prost-types = "0.14"
crc32fast = "1.4"
bincode = "=1.3.3"
world_magnetic_model = "0.4.0"
toml = "1"
notify = "8"
tokio-util = { version = "0.7", features = ["rt"] }
async-stripe = { version = "0.41", default-features = false, features = [
"runtime-tokio-hyper-rustls",
"connect", "checkout", "billing",
"webhook-events", "events",
] }
web-push = "0.11"
[dev-dependencies]
hex-literal = "1.1"
serial_test = { version = "3.4", features = ["file_locks"] }
tempfile = "3.27.0"
[build-dependencies]
vergen-git2 = { version = "9.1", features = ["build", "cargo"] }
prost-build = "0.14"
# Optimized development profile with light optimization
# Use with: cargo build --profile dev-fast
[profile.dev-fast]
inherits = "dev"
opt-level = 1 # Light optimization, faster than release
debug = 1 # Reduced debug info
codegen-units = 256 # Maximum parallelism for faster compilation
split-debuginfo = "unpacked"
incremental = true
[profile.dev]
opt-level = 1
debug = 1 # Line numbers only - faster compilation than full debug info
codegen-units = 256 # Maximum parallelism for faster compilation
[profile.dev.package."*"]
opt-level = 3
[profile.release]
# Optimize for faster builds while maintaining debug symbols for stack traces
debug = 1 # Line numbers only (vs debug = 2 full symbols) - faster to compile
strip = "none" # Keep symbols in binary for profiling and better stack traces in Tempo
lto = "thin" # Thin LTO for better optimization without full rebuild cost
codegen-units = 16 # Balance between compile time and runtime performance
incremental = false # Disable for release builds (incompatible with LTO)