1 viewer
rust 1,859,748 · typescript 235,215 · javascript 132,932 · python 20,426 · 6,405 files · digest 3ddca2872e6e · built in 1.4 s · crystals off
cre8-app-peer-store peer cargo crate
Truth-backed peer store extracted from cre8-app-peer.
3workspace deps
2direct dependents
93transitive dependents
5calls out
22calls in
36call-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). 34 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| FakeTruth::recordsrc/lib.rs:231 | method | 3 | 1 | 13 | 0 | 5.8 | |
| load_peerssrc/lib.rs:25 | fn | 20 | 2 | 3 | 0 | 4.1 | |
| upsert_peer_snapshot_idempotentsrc/lib.rs:169 | fn | 15 | 2 | 3 | 3 | 2.1 | |
| list_peer_snapshotssrc/lib.rs:185 | fn | 14 | 2 | 3 | 0 | 1.6 | |
| upsert_peersrc/lib.rs:11 | fn | 13 | 1 | 3 | 0 | 1.5 | |
| upsert_peer_snapshotsrc/lib.rs:132 | fn | 9 | 1 | 3 | 0 | 1.4 | |
| touch_peer_seensrc/lib.rs:200 | fn | 3 | 1 | 3 | 0 | 1.3 | |
| snapshot_dedupe_keysrc/lib.rs:142 | fn | 9 | 2 | 2 | 2 | 1.1 | |
| providers_for_ir_hashsrc/lib.rs:50 | fn | 13 | 2 | 3 | 0 | 1.1 | |
| prune_dead_peerssrc/lib.rs:208 | fn | 4 | 1 | 3 | 1 | 1.1 | |
| upsert_peer_protocolsrc/lib.rs:46 | fn | 3 | 1 | 3 | 0 | 1.1 | |
| extract_envelope_id_anysrc/lib.rs:152 | fn | 16 | 5 | 2 | 0 | 1 | |
| increment_peer_failuressrc/lib.rs:204 | fn | 3 | 1 | 3 | 0 | 1 | |
| latest_peer_sessionsrc/lib.rs:95 | fn | 19 | 1 | 2 | 1 | 1 | |
| list_peer_sessionssrc/lib.rs:115 | fn | 16 | 2 | 2 | 0 | 0.9 | |
| upsert_peer_sessionsrc/lib.rs:78 | fn | 16 | 1 | 2 | 0 | 0.8 | |
| FakeTruth::with_dedupesrc/lib.rs:227 | method | 3 | 1 | 1 | 0 | 0.6 | |
| FakeTruth::callssrc/lib.rs:235 | method | 3 | 1 | 1 | 0 | 0.6 | |
| FakeTruth::namesrc/lib.rs:241 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| FakeTruth::peer_upsertsrc/lib.rs:245 | trait impl | 14 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_load_peerssrc/lib.rs:260 | trait impl | 25 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_upsert_protocolsrc/lib.rs:286 | trait impl | 4 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_providers_for_ir_hashsrc/lib.rs:291 | trait impl | 10 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_upsert_sessionsrc/lib.rs:302 | trait impl | 19 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_latest_sessionsrc/lib.rs:322 | trait impl | 17 | 2 | 0 | 1 | 0.5 | |
| FakeTruth::peer_list_sessionssrc/lib.rs:340 | trait impl | 14 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_upsert_snapshotsrc/lib.rs:355 | trait impl | 4 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_insert_snapshot_dedupesrc/lib.rs:360 | trait impl | 10 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_list_snapshotssrc/lib.rs:371 | trait impl | 17 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_touch_seensrc/lib.rs:389 | trait impl | 4 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_increment_failuressrc/lib.rs:394 | trait impl | 4 | 1 | 0 | 1 | 0.5 | |
| FakeTruth::peer_prune_deadsrc/lib.rs:399 | trait impl | 4 | 1 | 0 | 2 | 0.5 | |
| peer_store_delegates_core_peer_session_and_health_methodssrc/lib.rs:406 | fn | 42 | 1 | 0 | 10 | 0.5 | |
| snapshots_cover_dedupe_keys_idempotence_and_json_fallbackssrc/lib.rs:450 | fn | 32 | 1 | 0 | 7 | 0.5 |
Outside the workspace
anyhow serde_json