1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,952 · python 20,426 · 6,408 files · digest f72e9ad3d771 · built in 1.3 s · crystals off
cre8-app-metering metering cargo crate
MeteringApp extracted app crate.
13workspace deps
4direct dependents
95transitive dependents
301calls out
19calls in
214call-graph weight
0.0%exact crystals
Neighbourhood
Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.
Declared but never named in this crate's source: cre8-runtime-core (normal), cre8-app-collab (dev).
Files
lowhigh
File call graph
Resolved calls between this crate's files, callers left of callees.
Heaviest functions
By call-graph weight (PageRank; 1.0 is the average function). 285 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| unit_prices_forsrc/pricing.rs:45 | fn | 26 | 6 | 8 | 0 | 6.8 | |
| EconomyView::newsrc/agent_tools.rs:77 | method | 3 | 1 | 11 | 1 | 3.6 | |
| connectsrc/connection.rs:104 | fn | 8 | 1 | 13 | 1 | 3.4 | |
| helpsrc/connection.rs:174 | fn | 7 | 1 | 1 | 0 | 3.4 | |
| fresh_viewsrc/agent_tools.rs:457 | fn | 8 | 1 | 14 | 4 | 3.1 | |
| cheapest_pricesrc/pricing.rs:74 | fn | 6 | 1 | 5 | 1 | 2.9 | |
| MeterOutcome::newsrc/external_call.rs:37 | method | 3 | 1 | 8 | 0 | 2.5 | |
| possrc/pricing.rs:120 | fn | 22 | 3 | 9 | 0 | 2.4 | |
| MeterEvent::llmsrc/metered_provider.rs:57 | method | 13 | 1 | 5 | 0 | 2.3 | |
| compute_cap_headroomsrc/preflight.rs:245 | fn | 51 | 7 | 14 | 7 | 2.2 | |
| LlmExternalCall::newsrc/llm_external_call.rs:34 | method | 3 | 1 | 5 | 0 | 2.1 | |
| build_llm_receiptsrc/receipt_path.rs:59 | fn | 22 | 1 | 9 | 0 | 2 | |
| fake_responsesrc/receipt_path.rs:308 | fn | 10 | 1 | 11 | 0 | 2 | |
| graph_errorsrc/connection.rs:259 | fn | 6 | 1 | 6 | 0 | 1.9 | |
| apply_eventsrc/metered_provider.rs:246 | fn | 36 | 5 | 9 | 5 | 1.7 | |
| build_compute_receiptsrc/receipt_path.rs:195 | fn | 22 | 1 | 4 | 0 | 1.5 | |
| ProposeFlowTool::newsrc/agent_tools.rs:326 | method | 3 | 1 | 5 | 0 | 1.5 | |
| setupsrc/worker.rs:124 | fn | 35 | 1 | 6 | 6 | 1.5 | |
| cap_scope_labelsrc/preflight.rs:204 | fn | 8 | 4 | 2 | 0 | 1.4 | |
| quota_cap_rulesrc/seed.rs:344 | fn | 14 | 1 | 2 | 0 | 1.4 | |
| check_llm_preflightsrc/preflight.rs:40 | fn | 27 | 3 | 8 | 2 | 1.3 | |
| check_manifold_cap_preflightsrc/preflight.rs:138 | fn | 29 | 3 | 2 | 3 | 1.3 | |
| MeteredCaller::newsrc/metered_caller.rs:94 | method | 9 | 1 | 4 | 0 | 1.3 | |
| setupsrc/metered_caller.rs:225 | fn | 41 | 1 | 4 | 8 | 1.3 | |
| evsrc/worker.rs:160 | fn | 15 | 1 | 5 | 1 | 1.3 | |
| push_drain_outcomesrc/worker.rs:48 | fn | 9 | 3 | 3 | 0 | 1.3 | |
| permissive_policysrc/agent_tools.rs:466 | fn | 3 | 1 | 1 | 0 | 1.2 | |
| seed_quota_faucetsrc/seed.rs:221 | fn | 22 | 1 | 7 | 4 | 1.2 | |
| read_positive_env_i64src/seed.rs:160 | fn | 19 | 5 | 3 | 1 | 1.2 | |
| try_drainsrc/worker.rs:62 | fn | 21 | 2 | 4 | 3 | 1.2 | |
| seed_llm_parent_capssrc/seed.rs:131 | fn | 28 | 4 | 6 | 6 | 1.2 | |
| cap_contractsrc/preflight.rs:491 | fn | 10 | 1 | 8 | 2 | 1.2 | |
| GetBalanceTool::newsrc/agent_tools.rs:95 | method | 3 | 1 | 4 | 0 | 1.1 | |
| read_flow_historysrc/preflight.rs:297 | fn | 60 | 12 | 2 | 5 | 1.1 | |
| total_cost_to_fillsrc/pricing.rs:87 | fn | 27 | 4 | 3 | 1 | 1.1 | |
| GetCapHeadroomTool::newsrc/agent_tools.rs:170 | method | 3 | 1 | 4 | 0 | 1.1 | |
| MeterEvent::embedsrc/metered_provider.rs:72 | method | 14 | 1 | 3 | 0 | 1.1 | |
| ListContractsTool::newsrc/agent_tools.rs:252 | method | 3 | 1 | 3 | 0 | 1.1 | |
| check_budgetsrc/budget_policy.rs:79 | fn | 49 | 6 | 6 | 3 | 1.1 | |
| llm_affordability_quotesrc/preflight.rs:81 | fn | 22 | 3 | 1 | 2 | 1.1 |
Outside the workspace
anyhow chrono hyperdb serde serde_json tracing