Polls sccache's counters every 10 s, keeps a JSON-lines history, and serves the page and its API on 127.0.0.1: one difference-with-reset mechanism behind every range, per-language time saved, problems, a copyable summary, and extra tables for multi-level and distributed caches. The page is embedded from crates/ui/dist when it exists, with a placeholder until then. POST /api/zero refuses foreign Host and Origin headers. Tests run against a stand-in sccache script; sample fixtures for the multi-level and distributed shapes are made up.
19 lines
422 B
TOML
19 lines
422 B
TOML
[package]
|
|
name = "sccache-dash"
|
|
description = "Records sccache's counters and serves a dashboard for them on localhost"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
sccache-dash-api = { path = "../api" }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
tiny_http = "0.12"
|
|
wait-timeout = "0.2"
|
|
dirs = "6"
|
|
include_dir = "0.7"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|