- Axum server with 3-step multipart upload flow - Claude Haiku Vision API reads odometer from phone photos - Step 1: photo + GPS → reverse-geocoded location via Nominatim - Step 2: mid-session reading, shows ride 1 km immediately - Step 3: final reading, writes 2 rows to JSON log, resets session - GET /download generates and streams mileage_log.xlsx - Mobile-friendly step-by-step HTML UI with progress indicator - Excel columns: Date, Time, Odometer start/end, Trip km, Location, Notes https://claude.ai/code/session_015myTTMs6yDsAGarATe5ePZ
19 lines
420 B
TOML
19 lines
420 B
TOML
[package]
|
|
name = "driverthing"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[[bin]]
|
|
name = "driverthing"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.7", features = ["multipart"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
base64 = "0.22"
|
|
chrono = "0.4"
|
|
rust_xlsxwriter = "0.75"
|
|
anyhow = "1"
|