Add /v1/og/contributions.png endpoint that builds an SVG of the all-time weekly contribution graph (one row per year) from daily counts, then rasterizes to PNG via resvg. Served with 1h cache. Add og:image and twitter:card meta tags to index.html pointing at the endpoint. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
1.3 KiB
TOML
39 lines
1.3 KiB
TOML
[workspace]
|
|
resolver = "3"
|
|
members = ["crates/*"]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.85"
|
|
license = "GPL-3.0-or-later"
|
|
authors = ["Rob Thijssen <rthijssen@gmail.com>"]
|
|
|
|
[workspace.dependencies]
|
|
# entities
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] }
|
|
thiserror = "2"
|
|
|
|
# core / data
|
|
sqlx = { version = "0.8", default-features = false, features = ["postgres", "runtime-tokio-rustls", "macros", "migrate", "chrono", "json"] }
|
|
async-trait = "0.1"
|
|
|
|
# binaries
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal", "time"] }
|
|
axum = "0.8"
|
|
tower-http = { version = "0.6", features = ["trace", "cors"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
|
anyhow = "1"
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json", "gzip"] }
|
|
figment = { version = "0.10", features = ["toml", "env"] }
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
resvg = "0.45"
|
|
|
|
# internal
|
|
moments-entities = { path = "crates/moments-entities", version = "=0.1.0" }
|
|
moments-core = { path = "crates/moments-core", version = "=0.1.0" }
|
|
moments-data = { path = "crates/moments-data", version = "=0.1.0" }
|