-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
85 lines (63 loc) · 1.68 KB
/
Copy pathCargo.toml
File metadata and controls
85 lines (63 loc) · 1.68 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
[workspace]
members = [".", "src-tauri"]
[workspace.package]
version = "0.1.4"
edition = "2021"
[package]
name = "llm-usage"
version.workspace = true
edition.workspace = true
description = "Local-first personal LLM usage dashboard"
[lib]
name = "llm_usage"
path = "src/lib.rs"
[[bin]]
name = "llm-usage"
path = "src/main.rs"
[features]
default = ["web"]
web = ["rust-embed", "mime_guess"]
desktop = ["tauri"]
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
futures = "0.3"
# Web server
axum = { version = "0.7", features = ["macros"] }
tower = { version = "0.4", features = ["util"] }
tower-http = { version = "0.5", features = ["cors", "fs"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# CLI
clap = { version = "4", features = ["derive"] }
# Config
dirs = "5"
toml = "0.8"
# Decimal for money
rust_decimal = { version = "1", features = ["serde-with-str"] }
# Error handling
thiserror = "1"
anyhow = "1"
# HTTP client for pricing
reqwest = { version = "0.12", features = ["json"] }
# SQLite for OpenCode
rusqlite = { version = "0.31", features = ["bundled"] }
# Async trait
async-trait = "0.1"
# Data parallelism for per-file parsing
rayon = "1"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# UUID for sessions
uuid = { version = "1", features = ["v4"] }
# Time
chrono = { version = "0.4", features = ["serde"] }
# Embedded frontend (web only)
rust-embed = { version = "8", optional = true }
mime_guess = { version = "2", optional = true }
# Tauri (optional, for desktop)
tauri = { version = "1", optional = true, features = ["shell-open"] }
[dev-dependencies]
tokio-test = "0.4"