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-device-store device cargo crate

Pure peer-device storage helpers.

crates/cre8-app-device-store · level 6 · 383 lines (309 code) · 1 files · 27 fns (9 tests) · cyclomatic Σ 48

3workspace deps
3direct dependents
92transitive dependents
3calls out
10calls in
25.1call-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 · 6 calls · source referencenormal dep · 1 calls · source referencenormal dep · 0 calls · source referencenormal dep · 2 calls · source referencenormal dep · 1 calls · source referencenormal dep · 3 calls · source referenceapp-device-storeL6 · 309 linescre8-app-device-storeapp-deviceL9 · 14,646 linescre8-app-deviceapp-device-modelL0 · 252 linescre8-app-device-modelapp-truth-apiL5 · 888 linescre8-app-truth-apiplatform-timeL3 · 65 linescre8-platform-timeapp-networkL11 · 15,383 linescre8-app-networkapp-peerL11 · 6,235 linescre8-app-peer

Files

lowhigh

Heaviest functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
device_records_from_profilesrc/lib.rs:83fn353382.5
sync_peer_devicessrc/lib.rs:119fn163412.1
get_devicesrc/lib.rs:225fn31201.7
upsert_peer_devicessrc/lib.rs:173fn92321.3
list_devicessrc/lib.rs:183fn81201.2
sanitize_device_idsrc/lib.rs:17fn66101.1
skip_upsertsrc/lib.rs:136fn32101
merge_device_rowssrc/lib.rs:152fn102121
prune_offline_devicessrc/lib.rs:197fn275201
records_by_device_idsrc/lib.rs:140fn31100.9
preserve_created_atsrc/lib.rs:144fn73100.9
count_devicessrc/lib.rs:229fn31200.9
extract_devicessrc/lib.rs:13fn31100.8
device_id_forsrc/lib.rs:24fn132110.8
device_kind_forsrc/lib.rs:38fn91100.8
device_class_forsrc/lib.rs:50fn91110.8
device_last_seen_ms_forsrc/lib.rs:62fn31100.8
device_label_forsrc/lib.rs:66fn91100.8
profilesrc/lib.rs:293fn201200.8
FakeTruth::replace_callssrc/lib.rs:247method31100.5
FakeTruth::namesrc/lib.rs:253trait impl31000.5
FakeTruth::device_replace_peer_recordssrc/lib.rs:257trait impl71000.5
FakeTruth::device_listsrc/lib.rs:265trait impl121000.5
FakeTruth::device_getsrc/lib.rs:278trait impl92000.5
FakeTruth::device_countsrc/lib.rs:288trait impl31000.5
records_from_profile_normalize_ids_labels_classes_and_livenesssrc/lib.rs:315fn221020.5
sync_upsert_list_get_count_and_prune_delegate_to_truthsrc/lib.rs:339fn442080.5

Outside the workspace

anyhow serde_json