Skip to content
1 viewer

rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off

cre8-app-metering metering cargo crate

MeteringApp extracted app crate.

crates/cre8-app-metering · level 11 · 5,724 lines (4,358 code) · 14 files · 285 fns (159 tests) · cyclomatic Σ 445

13workspace deps
4direct dependents
93transitive dependents
301calls out
19calls in
213call-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.

normal dep · 13 calls · source referencenormal dep · 1 calls · source referencenormal dep · 5 calls · source referencenormal dep · 1 calls · source referencenormal dep · 143 calls · source referencenormal dep · 15 calls · source referencenormal dep · 29 calls · source referencenormal dep · 10 calls · source referencenormal dep · 3 calls · source referencenormal dep · 1 calls · source referencenormal dep · 20 calls · source referencenormal dep · 18 calls · source referencenormal dep · 0 calls · incomplete scannormal dep · 0 calls · source referencenormal dep · 1 calls · source referencenormal dep · 3 calls · source referencedev dep · 0 calls · incomplete scandev dep · 57 calls · source referencedev dep · 0 calls · incomplete scannormal dep · 0 calls · source referencedev dep · 0 calls · incomplete scanapp-meteringL11 · 4,358 linescre8-app-meteringapp-agentL24 · 25,428 linescre8-app-agentapp-computeL14 · 94,808 linescre8-app-computeapp-intelligenceL12 · 6,289 linescre8-app-intelligenceapp-intelligence-apiL4 · 1,046 linescre8-app-intelligence-apiapp-manifoldL10 · 18,941 linescre8-app-manifoldapp-matching-modelL4 · 7,752 linescre8-app-matching-modelapp-passport-modelL4 · 2,434 linescre8-app-passport-modelapp-protocolL9 · 26,097 linescre8-app-protocolplatform-envL3 · 316 linescre8-platform-envplatform-timeL3 · 65 linescre8-platform-timeruntime-app-typesL6 · 2,860 linescre8-runtime-app-typesruntime-contractsL0 · 6,322 linescre8-runtime-contractsruntime-coreL2 · 747 linescre8-runtime-coreruntime-hostL1 · 1,649 linescre8-runtime-hostutil-lock-extL0 · 195 linescre8-util-lock-extutil-secretL0 · 109 linescre8-util-secretapp-collabL18 · 4,876 linescre8-app-collabtest-helpersL29 · 557 linescre8-test-helpersruntimeL31 · 4 linescre8-runtimeruntime-app-catalogL28 · 681 linescre8-runtime-app-catalogruntime-test-suiteL0 · 0 linescre8-runtime-test-suite

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
unit_prices_forsrc/pricing.rs:45fn266806.8
EconomyView::newsrc/agent_tools.rs:77method311113.6
connectsrc/connection.rs:104fn811313.4
helpsrc/connection.rs:174fn71103.4
fresh_viewsrc/agent_tools.rs:457fn811443.1
cheapest_pricesrc/pricing.rs:74fn61512.9
MeterOutcome::newsrc/external_call.rs:37method31802.5
possrc/pricing.rs:120fn223902.4
MeterEvent::llmsrc/metered_provider.rs:57method131502.3
compute_cap_headroomsrc/preflight.rs:245fn5171472.2
LlmExternalCall::newsrc/llm_external_call.rs:34method31502.1
build_llm_receiptsrc/receipt_path.rs:59fn221902
fake_responsesrc/receipt_path.rs:308fn1011102
graph_errorsrc/connection.rs:259fn61601.9
apply_eventsrc/metered_provider.rs:246fn365951.7
build_compute_receiptsrc/receipt_path.rs:195fn221401.5
ProposeFlowTool::newsrc/agent_tools.rs:326method31501.5
setupsrc/worker.rs:124fn351661.5
cap_scope_labelsrc/preflight.rs:204fn84201.4
quota_cap_rulesrc/seed.rs:344fn141201.4
check_llm_preflightsrc/preflight.rs:40fn273821.3
check_manifold_cap_preflightsrc/preflight.rs:138fn293231.3
MeteredCaller::newsrc/metered_caller.rs:94method91401.3
setupsrc/metered_caller.rs:225fn411481.3
evsrc/worker.rs:160fn151511.3
push_drain_outcomesrc/worker.rs:48fn93301.3
permissive_policysrc/agent_tools.rs:466fn31101.2
seed_quota_faucetsrc/seed.rs:221fn221741.2
read_positive_env_i64src/seed.rs:160fn195311.2
try_drainsrc/worker.rs:62fn212431.2
seed_llm_parent_capssrc/seed.rs:131fn284661.2
cap_contractsrc/preflight.rs:491fn101821.2
GetBalanceTool::newsrc/agent_tools.rs:95method31401.1
read_flow_historysrc/preflight.rs:297fn6012251.1
total_cost_to_fillsrc/pricing.rs:87fn274311.1
GetCapHeadroomTool::newsrc/agent_tools.rs:170method31401.1
MeterEvent::embedsrc/metered_provider.rs:72method141301.1
ListContractsTool::newsrc/agent_tools.rs:252method31301.1
check_budgetsrc/budget_policy.rs:79fn496631.1
llm_affordability_quotesrc/preflight.rs:81fn223121.1

Outside the workspace

anyhow chrono hyperdb serde serde_json tracing