-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
77 lines (65 loc) · 2.62 KB
/
Copy pathCargo.toml
File metadata and controls
77 lines (65 loc) · 2.62 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
[workspace]
members = [
"crates/focal-core",
"crates/focal-ffi",
"crates/focal-proxy",
]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["focal-lens contributors"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/focal-lens/focal-lens"
# ── Shared dependency versions ────────────────────────────────────────────────
[workspace.dependencies]
# Async runtime
tokio = { version = "1.38", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec"] }
# Serialization
prost = "0.13"
prost-types = "0.13"
# Provides serde-capable replacements for Timestamp, Duration, and other
# Google well-known proto types so generated code can derive Serialize/Deserialize.
prost-wkt-types = "0.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bytes = "1.6"
# HTTP server (proxy crate)
axum = { version = "0.7", features = ["macros"] }
tower = { version = "0.4", features = ["full"] }
tower-http = { version = "0.5", features = ["cors", "trace", "compression-gzip"] }
hyper = { version = "1.3", features = ["full"] }
# FFI bindings (ffi crate)
uniffi = { version = "0.28", features = ["tokio"] }
# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Error handling
thiserror = "2.0"
anyhow = "1.0"
# Utilities
uuid = { version = "1.10", features = ["v4", "serde"] }
async-trait = "0.1"
chrono = { version = "0.4", features = ["serde"] }
sha2 = "0.10"
flate2 = "1.0"
parking_lot = "0.12"
crossbeam-channel = "0.5"
regex = "1.10"
# PostgreSQL async driver + compile-time query checking
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "migrate", "chrono", "uuid", "json"] }
# HTTP client used by the FFI layer to upload flush payloads and poll workflow
# bundles. rustls-tls is pure-Rust (no C dependency) so it works on iOS and
# Android without needing OpenSSL.
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
# ── Workspace-wide release profile ────────────────────────────────────────────
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = "symbols"
[profile.release-mobile]
inherits = "release"
panic = "abort" # Smaller binary for mobile
lto = "fat"