Skip to content
1 viewer

rust 1,859,748 · typescript 235,215 · javascript 132,913 · python 20,426 · 6,405 files · digest 00b5738199cb · built in 1.5 s · crystals off

cre8-app-network-consensus network cargo crate

Pure consensus and route-planning kernels extracted from cre8-app-network.

crates/cre8-app-network-consensus · level 0 · 1,742 lines (1,516 code) · 1 files · 66 fns (20 tests) · cyclomatic Σ 117

0workspace deps
4direct dependents
202transitive dependents
0calls out
3calls in
58call-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.

Files

lowhigh

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 66 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
build_route_plansrc/lib.rs:1073fn1521164.4
build_consensus_plansrc/lib.rs:730fn1317733.1
effective_thresholdsrc/lib.rs:229fn92502.6
truth_demand_keysrc/lib.rs:404fn31401.5
capability_demand_keysrc/lib.rs:408fn31401.5
consensus_account_keysrc/lib.rs:188fn71201.5
peer_compatiblesrc/lib.rs:239fn112201.5
empty_route_plansrc/lib.rs:362fn411101.4
decrement_route_demand_keysrc/lib.rs:567fn52101.1
build_route_demandsrc/lib.rs:412fn195121.1
route_plan_contextsrc/lib.rs:880fn281161.1
route_plan_has_empty_requirementssrc/lib.rs:909fn32101.1
empty_route_plan_from_contextsrc/lib.rs:913fn111111.1
select_route_peerssrc/lib.rs:958fn253121.1
finish_route_plansrc/lib.rs:984fn8831111.1
achieved_ratio_from_unitssrc/lib.rs:925fn32201
choose_next_route_candidatesrc/lib.rs:508fn376151
apply_route_selection_candidatesrc/lib.rs:933fn241121
route_candidate_fits_budgetsrc/lib.rs:469fn91200.9
route_candidate_fits_cost_per_unitsrc/lib.rs:479fn31200.9
decrement_route_demandsrc/lib.rs:546fn91130.9
route_gain_unitssrc/lib.rs:436fn193230.8
score_route_candidatesrc/lib.rs:456fn122200.8
better_route_candidatesrc/lib.rs:483fn245200.8
peer_route_compatiblesrc/lib.rs:251fn112100.8
clean_item_setsrc/lib.rs:320fn31100.8
decrement_route_demand_for_itemssrc/lib.rs:556fn102110.8
demand_remainingsrc/lib.rs:432fn31100.7
route_candidate_previewsrc/lib.rs:652fn171120.7
clean_unique_itemssrc/lib.rs:316fn31100.7
build_compatible_route_peerssrc/lib.rs:324fn121120.7
route_target_truth_ksrc/lib.rs:337fn123110.7
route_target_capability_ksrc/lib.rs:350fn113100.7
route_plan_limitssrc/lib.rs:862fn71100.7
route_plan_total_unitssrc/lib.rs:870fn91100.7
tie_breaker_peersrc/lib.rs:1714fn141100.6
tie_breaker_scoresrc/lib.rs:1729fn31100.6
default_weightsrc/lib.rs:180fn31100.6
default_relay_costsrc/lib.rs:184fn31100.6
build_consensus_cover_kernel_inputsrc/lib.rs:196fn322130.6

Outside the workspace

hyperdb serde