rust 1,847,280 · typescript 232,434 · javascript 131,101 · python 19,227 · 6,362 files · digest 755e2ee30522 · built in 2.3 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).
Neighbourhood
Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.
Files
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). 319 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| connectsrc/connection.rs:212 | fn | 10 | 1 | 17 | 1 | 3.7 | |
| EnergySite::newsrc/model.rs:69 | method | 30 | 1 | 5 | 2 | 3.5 | |
| bucket_floorsrc/sim.rs:260 | fn | 3 | 1 | 8 | 0 | 3.3 | |
| SiteKind::parsesrc/sim.rs:53 | method | 7 | 3 | 3 | 0 | 2.7 | |
| derive_offer_idsrc/market.rs:148 | fn | 3 | 1 | 2 | 1 | 2.6 | |
| EnergyOffer::newsrc/market.rs:153 | method | 14 | 1 | 4 | 1 | 2.4 | |
| i_typesrc/proven.rs:102 | fn | 3 | 1 | 2 | 0 | 2.2 | |
| EnergySite::site_kindsrc/model.rs:100 | method | 3 | 1 | 3 | 1 | 2.2 | |
| parsesrc/connection.rs:508 | fn | 3 | 1 | 8 | 0 | 2.2 | |
| callsrc/e2e_tests.rs:32 | fn | 3 | 1 | 6 | 2 | 2.1 | |
| deterministic_ts_from_refsrc/credit.rs:98 | fn | 3 | 1 | 5 | 0 | 2 | |
| r_typesrc/proven.rs:99 | fn | 3 | 1 | 3 | 0 | 2 | |
| derive_site_idsrc/model.rs:64 | fn | 3 | 1 | 1 | 1 | 2 | |
| value_noise3src/sim.rs:156 | fn | 17 | 7 | 2 | 2 | 1.9 | |
| offersrc/market.rs:706 | fn | 3 | 1 | 9 | 1 | 1.8 | |
| build_meter_elfsrc/proven.rs:252 | fn | 23 | 8 | 6 | 2 | 1.8 | |
| verify_structuralsrc/proven.rs:454 | fn | 43 | 14 | 6 | 6 | 1.8 | |
| samplesrc/sim.rs:239 | fn | 19 | 2 | 7 | 6 | 1.7 | |
| honest_envelopesrc/proven.rs:840 | fn | 8 | 1 | 7 | 4 | 1.7 | |
| plant_energy_namespacesrc/init.rs:22 | fn | 8 | 2 | 1 | 3 | 1.6 | |
| str_atsrc/view_templates.rs:81 | fn | 3 | 1 | 5 | 0 | 1.6 | |
| participant_rejectsrc/market.rs:197 | fn | 10 | 4 | 4 | 0 | 1.6 | |
| settle_all_atsrc/credit.rs:298 | fn | 65 | 12 | 5 | 6 | 1.5 | |
| balance_ofsrc/e2e_tests.rs:155 | fn | 3 | 1 | 10 | 0 | 1.5 | |
| solar_declination_radsrc/sim.rs:105 | fn | 4 | 1 | 1 | 0 | 1.5 | |
| addisrc/proven.rs:124 | fn | 3 | 1 | 3 | 1 | 1.4 | |
| EnergyOffer::price_per_kwhsrc/market.rs:174 | method | 3 | 1 | 3 | 0 | 1.4 | |
| market_board_htmlsrc/view_templates.rs:302 | fn | 46 | 4 | 3 | 7 | 1.4 | |
| str_fieldsrc/market.rs:435 | fn | 3 | 1 | 5 | 0 | 1.4 | |
| energy_doc_patch_valuesrc/view_templates.rs:293 | fn | 3 | 1 | 3 | 3 | 1.4 | |
| runsrc/init.rs:15 | fn | 4 | 1 | 2 | 1 | 1.3 | |
| offer_create_handlersrc/market.rs:456 | fn | 59 | 4 | 2 | 12 | 1.3 | |
| offer_list_handlersrc/market.rs:518 | fn | 29 | 2 | 2 | 4 | 1.3 | |
| offer_get_handlersrc/market.rs:549 | fn | 14 | 1 | 2 | 4 | 1.3 | |
| offer_fill_handlersrc/market.rs:565 | fn | 63 | 7 | 2 | 12 | 1.3 | |
| offer_cancel_handlersrc/market.rs:632 | fn | 52 | 7 | 2 | 10 | 1.3 | |
| register_meter_handlersrc/meter.rs:267 | fn | 73 | 5 | 2 | 7 | 1.3 | |
| list_meters_handlersrc/meter.rs:342 | fn | 13 | 1 | 2 | 2 | 1.3 | |
| prove_interval_handlersrc/proven.rs:672 | fn | 16 | 3 | 2 | 3 | 1.3 | |
| submit_proven_interval_handlersrc/proven.rs:692 | fn | 136 | 17 | 2 | 10 | 1.3 |
Outside the workspace
anyhow cre8-lib-math cre8-lib-rng cre8-vm hyperdb serde serde_json ureq