Skip to content

Commit 4f483cf

Browse files
committed
docs(ccusage): describe the pricing HTTP client and its dependencies
The ccusage README now lists http.rs and http/ and the ureq, rustls, ring and rustls-webpki dependencies it pulls in. ccusage-core's list drops ureq, which it has not depended on since the client moved into the binary, and gains miniz_oxide, which it does use.
1 parent e945637 commit 4f483cf

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎rust/crates/ccusage-core/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ instead, which falls back to that crate when nothing was installed.
3737
- `ccusage-terminal`
3838
- `jiff`
3939
- `memchr`
40+
- `miniz_oxide`
4041
- `rustc-hash`
4142
- `serde`
4243
- `serde_json`
4344
- `smallvec`
44-
- `ureq`
4545
- `ccusage-pricing-snapshots` — optional, behind the test-only `test-snapshots`
4646
feature
4747

‎rust/crates/ccusage/README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ source in its own `ccusage-adapter-*` crate.
1313
`blocks` and `statusline`.
1414
- `adapter/` — the thin aliases that map each `ccusage <agent>` subcommand to its
1515
adapter crate.
16+
- `http.rs` and `http/` — the pricing refresh's HTTP client, installed into
17+
`ccusage-core` at startup: ureq with an ETag cache and 304 revalidation, over a
18+
verify-only rustls provider (TLS 1.3, X25519, RSA and ECDSA verification).
19+
Keeping it here keeps ureq, rustls and ring out of the crates every adapter builds.
1620
- `bin/generate_config_schema.rs` — writes `apps/ccusage/config-schema.json`; the
1721
`config-schema` flake check fails when the committed file drifts.
1822

@@ -42,8 +46,12 @@ source in its own `ccusage-adapter-*` crate.
4246
- `ccusage-config`
4347
- `ccusage-core`
4448
- `ccusage-pricing-snapshots`
49+
- `ring`
50+
- `rustls`
51+
- `rustls-webpki`
4552
- `serde`
4653
- `serde_json`
54+
- `ureq`
4755

4856
## Build layer
4957

0 commit comments

Comments
 (0)