Skip to content
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.

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

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).

normal dep · 13 callsnormal dep · 1 callsnormal dep · 5 callsnormal dep · 1 callsnormal dep · 143 callsnormal dep · 15 callsnormal dep · 29 callsnormal dep · 10 callsnormal dep · 3 callsnormal dep · 1 callsnormal dep · 20 callsnormal dep · 18 callsnormal dep · 0 calls · never namednormal dep · 0 callsnormal dep · 1 callsnormal dep · 3 callsdev dep · 0 calls · never nameddev dep · 57 callsdev dep · 0 calls · never namednormal dep · 0 callsdev dep · 0 calls · never namedapp-meteringL10 · 4,358 linescre8-app-meteringapp-agentL23 · 25,432 linescre8-app-agentapp-computeL13 · 94,813 linescre8-app-computeapp-intelligenceL11 · 6,159 linescre8-app-intelligenceapp-intelligence-apiL4 · 1,046 linescre8-app-intelligence-apiapp-manifoldL9 · 18,864 linescre8-app-manifoldapp-matching-modelL4 · 7,768 linescre8-app-matching-modelapp-passport-modelL4 · 2,418 linescre8-app-passport-modelapp-protocolL8 · 25,895 linescre8-app-protocolplatform-envL3 · 316 linescre8-platform-envplatform-timeL3 · 65 linescre8-platform-timeruntime-app-typesL5 · 2,860 linescre8-runtime-app-typesruntime-contractsL0 · 6,077 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-collabL17 · 4,990 linescre8-app-collabtest-helpersL28 · 557 linescre8-test-helpersruntimeL30 · 4 linescre8-runtimeruntime-app-catalogL27 · 676 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