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-energy energy cargo crate

EnergyApp — virtual renewable generation on the economy spine: EnergySite vertices (solar panels / wind turbines placed at real lat/lon) accrue watt-hours from a fully deterministic sun-geometry + weather-field model, and settled generation mints spendable cre8/energy/{vsolar|vwind} to the site owner through the manifold commit chokepoint. The meter is a pure function of (site, UTC interval), so any peer can re-derive and audit every minted credit. (2026-08-27).

crates/cre8-app-energy · level 15 · 6,880 lines (5,369 code) · 13 files · 325 fns (92 tests) · cyclomatic Σ 563

15workspace deps
1direct dependents
8transitive dependents
189calls out
0calls in
271call-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 · 14 calls · source referencenormal dep · 21 calls · source referencenormal dep · 30 calls · source referencenormal dep · 33 calls · source referencenormal dep · 2 calls · source referencenormal dep · 6 calls · source referencenormal dep · 1 calls · source referencenormal dep · 10 calls · source referencenormal dep · 10 calls · source referencenormal dep · 17 calls · source referencenormal dep · 0 calls · source referencenormal dep · 3 calls · source referencenormal dep · 0 calls · source referencenormal dep · 31 calls · source referencenormal dep · 9 calls · source referencedev dep · 2 calls · source referencenormal dep · 0 calls · source referenceapp-energyL15 · 5,369 linescre8-app-energyapp-computeL14 · 94,808 linescre8-app-computeapp-manifoldL10 · 18,941 linescre8-app-manifoldapp-protocolL9 · 26,097 linescre8-app-protocolapp-view-libL8 · 89,193 linescre8-app-view-libapp-virtual-modelL0 · 2,869 linescre8-app-virtual-modelapp-virtual-storeL8 · 3,078 linescre8-app-virtual-storeplatform-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-dispatch-apiL7 · 496 linescre8-runtime-dispatch-apiruntime-hostL1 · 1,649 linescre8-runtime-hostutil-graph-vertexL0 · 173 linescre8-util-graph-vertexutil-view-htmlL0 · 1,660 linescre8-util-view-htmlapp-truthL7 · 20,485 linescre8-app-truthruntime-app-catalogL28 · 681 linescre8-runtime-app-catalog

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). 325 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
connectsrc/connection.rs:212fn1011713.6
EnergySite::newsrc/model.rs:69method301523.5
bucket_floorsrc/sim.rs:260fn31803.2
SiteKind::parsesrc/sim.rs:53method73302.7
derive_offer_idsrc/market.rs:148fn31212.6
EnergyOffer::newsrc/market.rs:153method141412.4
i_typesrc/proven.rs:102fn31202.2
EnergySite::site_kindsrc/model.rs:100method31312.2
parsesrc/connection.rs:508fn31802.2
callsrc/e2e_tests.rs:32fn31622.1
deterministic_ts_from_refsrc/credit.rs:98fn31502
r_typesrc/proven.rs:99fn31302
derive_site_idsrc/model.rs:64fn31112
value_noise3src/sim.rs:156fn177221.9
offersrc/market.rs:706fn31911.8
build_meter_elfsrc/proven.rs:252fn238621.8
verify_structuralsrc/proven.rs:454fn4314661.8
samplesrc/sim.rs:239fn192761.7
honest_envelopesrc/proven.rs:840fn81741.6
plant_energy_namespacesrc/init.rs:22fn82131.6
str_atsrc/view_templates.rs:155fn31501.6
participant_rejectsrc/market.rs:197fn104401.6
settle_all_atsrc/credit.rs:298fn6512561.5
balance_ofsrc/e2e_tests.rs:155fn311001.5
solar_declination_radsrc/sim.rs:105fn41101.5
addisrc/proven.rs:124fn31311.4
EnergyOffer::price_per_kwhsrc/market.rs:174method31301.4
market_board_htmlsrc/view_templates.rs:366fn464371.4
str_fieldsrc/market.rs:435fn31501.4
energy_doc_patch_valuesrc/view_templates.rs:357fn31331.3
runsrc/init.rs:15fn41211.3
offer_create_handlersrc/market.rs:456fn5942121.3
offer_list_handlersrc/market.rs:518fn292241.3
offer_get_handlersrc/market.rs:549fn141241.3
offer_fill_handlersrc/market.rs:565fn6372121.3
offer_cancel_handlersrc/market.rs:632fn5272101.3
register_meter_handlersrc/meter.rs:267fn735271.3
list_meters_handlersrc/meter.rs:342fn131221.3
prove_interval_handlersrc/proven.rs:672fn163231.3
submit_proven_interval_handlersrc/proven.rs:692fn136172101.3

Outside the workspace

anyhow cre8-lib-math cre8-lib-rng cre8-vm hyperdb serde serde_json ureq