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

Shared Device types — DeviceRecord. Lifted from the old root device model.

crates/cre8-app-device-model · level 0 · 331 lines (252 code) · 1 files · 16 fns (7 tests) · cyclomatic Σ 24

0workspace deps
5direct dependents
213transitive dependents
0calls out
8calls in
20.2call-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 · 7 calls · source referencenormal dep · 1 calls · source referencenormal dep · 0 calls · source referencenormal dep · 0 calls · source referencenormal dep · 0 calls · source referenceapp-device-modelL0 · 252 linescre8-app-device-modelapp-deviceL9 · 14,646 linescre8-app-deviceapp-device-storeL6 · 309 linescre8-app-device-storeapp-peerL11 · 6,235 linescre8-app-peerapp-truthL7 · 20,485 linescre8-app-truthapp-truth-apiL5 · 888 linescre8-app-truth-api

Files

lowhigh

Heaviest functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
DeviceRecord::heartbeat_age_mssrc/lib.rs:74method31203.9
DeviceRecord::livenesssrc/lib.rs:81method134413.3
classifysrc/lib.rs:154fn72823
known_kind_classsrc/lib.rs:162fn31101.8
peripheral_kind_classsrc/lib.rs:166fn31101.8
DeviceRecord::liveness_defaultsrc/lib.rs:96method31110.9
DeviceRecord::normalize_classsrc/lib.rs:105method52110.9
DeviceRecord::is_onlinesrc/lib.rs:100method32110.7
Liveness::as_strsrc/lib.rs:62method73000.5
device_record_serde_round_tripsrc/lib.rs:203fn241000.5
device_record_deserializes_legacy_rows_without_class_or_heartbeatsrc/lib.rs:229fn191010.5
classify_buckets_known_kindssrc/lib.rs:250fn131010.5
normalize_class_fills_blank_from_kindsrc/lib.rs:265fn101010.5
liveness_transitions_online_stale_offlinesrc/lib.rs:277fn161020.5
device_transport_record_metadata_defaults_to_null_when_missingsrc/lib.rs:295fn191000.5
device_frame_batch_round_trips_frames_in_ordersrc/lib.rs:316fn151000.5

Outside the workspace

serde serde_json