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.
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.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| build_route_plansrc/lib.rs:1073 | fn | 15 | 2 | 11 | 6 | 4.4 | |
| build_consensus_plansrc/lib.rs:730 | fn | 131 | 7 | 7 | 3 | 3.1 | |
| effective_thresholdsrc/lib.rs:229 | fn | 9 | 2 | 5 | 0 | 2.6 | |
| truth_demand_keysrc/lib.rs:404 | fn | 3 | 1 | 4 | 0 | 1.5 | |
| capability_demand_keysrc/lib.rs:408 | fn | 3 | 1 | 4 | 0 | 1.5 | |
| consensus_account_keysrc/lib.rs:188 | fn | 7 | 1 | 2 | 0 | 1.5 | |
| peer_compatiblesrc/lib.rs:239 | fn | 11 | 2 | 2 | 0 | 1.5 | |
| empty_route_plansrc/lib.rs:362 | fn | 41 | 1 | 1 | 0 | 1.4 | |
| decrement_route_demand_keysrc/lib.rs:567 | fn | 5 | 2 | 1 | 0 | 1.1 | |
| build_route_demandsrc/lib.rs:412 | fn | 19 | 5 | 1 | 2 | 1.1 | |
| route_plan_contextsrc/lib.rs:880 | fn | 28 | 1 | 1 | 6 | 1.1 | |
| route_plan_has_empty_requirementssrc/lib.rs:909 | fn | 3 | 2 | 1 | 0 | 1.1 | |
| empty_route_plan_from_contextsrc/lib.rs:913 | fn | 11 | 1 | 1 | 1 | 1.1 | |
| select_route_peerssrc/lib.rs:958 | fn | 25 | 3 | 1 | 2 | 1.1 | |
| finish_route_plansrc/lib.rs:984 | fn | 88 | 3 | 1 | 11 | 1.1 | |
| achieved_ratio_from_unitssrc/lib.rs:925 | fn | 3 | 2 | 2 | 0 | 1 | |
| choose_next_route_candidatesrc/lib.rs:508 | fn | 37 | 6 | 1 | 5 | 1 | |
| apply_route_selection_candidatesrc/lib.rs:933 | fn | 24 | 1 | 1 | 2 | 1 | |
| route_candidate_fits_budgetsrc/lib.rs:469 | fn | 9 | 1 | 2 | 0 | 0.9 | |
| route_candidate_fits_cost_per_unitsrc/lib.rs:479 | fn | 3 | 1 | 2 | 0 | 0.9 | |
| decrement_route_demandsrc/lib.rs:546 | fn | 9 | 1 | 1 | 3 | 0.9 | |
| route_gain_unitssrc/lib.rs:436 | fn | 19 | 3 | 2 | 3 | 0.8 | |
| score_route_candidatesrc/lib.rs:456 | fn | 12 | 2 | 2 | 0 | 0.8 | |
| better_route_candidatesrc/lib.rs:483 | fn | 24 | 5 | 2 | 0 | 0.8 | |
| peer_route_compatiblesrc/lib.rs:251 | fn | 11 | 2 | 1 | 0 | 0.8 | |
| clean_item_setsrc/lib.rs:320 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| decrement_route_demand_for_itemssrc/lib.rs:556 | fn | 10 | 2 | 1 | 1 | 0.8 | |
| demand_remainingsrc/lib.rs:432 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| route_candidate_previewsrc/lib.rs:652 | fn | 17 | 1 | 1 | 2 | 0.7 | |
| clean_unique_itemssrc/lib.rs:316 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| build_compatible_route_peerssrc/lib.rs:324 | fn | 12 | 1 | 1 | 2 | 0.7 | |
| route_target_truth_ksrc/lib.rs:337 | fn | 12 | 3 | 1 | 1 | 0.7 | |
| route_target_capability_ksrc/lib.rs:350 | fn | 11 | 3 | 1 | 0 | 0.7 | |
| route_plan_limitssrc/lib.rs:862 | fn | 7 | 1 | 1 | 0 | 0.7 | |
| route_plan_total_unitssrc/lib.rs:870 | fn | 9 | 1 | 1 | 0 | 0.7 | |
| tie_breaker_peersrc/lib.rs:1714 | fn | 14 | 1 | 1 | 0 | 0.6 | |
| tie_breaker_scoresrc/lib.rs:1729 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| default_weightsrc/lib.rs:180 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| default_relay_costsrc/lib.rs:184 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| build_consensus_cover_kernel_inputsrc/lib.rs:196 | fn | 32 | 2 | 1 | 3 | 0.6 |
Outside the workspace
hyperdb serde