Rust CLI with clap subcommands (pretty/raw json/raw plain/fetch/cache/config). Per-workspace dual HTTP (Zen balance + Go limits) run with tokio::join, 500 ms workspace pacing, TTL-180s file cache, retry/backoff for transient failures. scrape.rs holds the only OpenCode-coupled HTML selectors (placeholders until the real Zen/Go pages are captured). Unicode blitter-block bars in pretty mode; stable JSON/plain raw output for widgets and agent plugins.
32 lines
879 B
TOML
32 lines
879 B
TOML
[package]
|
|
name = "ocd"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
description = "OpenCode limits and balance dashboard"
|
|
license = "MIT"
|
|
repository = "https://example.invalid/ocd"
|
|
|
|
[[bin]]
|
|
name = "ocd"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
anstyle = "1.0"
|
|
anyhow = "1.0"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
clap = { version = "4.6", features = ["derive", "env", "cargo"] }
|
|
directories = "6.0"
|
|
reqwest = { version = "0.13", default-features = false, features = ["rustls", "webpki-roots", "gzip", "json", "charset", "http2"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
scraper = "0.27"
|
|
terminal_size = "0.4"
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "sync"] }
|
|
toml = "1"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
codegen-units = 1 |