Skip to content
1 viewer

rust 1,847,280 · typescript 232,434 · javascript 131,101 · python 19,227 · 6,362 files · digest 755e2ee30522 · built in 2.3 s · crystals off

cre8-runtime-vm-bridge crates cargo crate

RuntimeContext → CRE8VM HostBridge adapter. Lets Rust app handlers run through the VM with substrate-bound HostCalls.

crates/cre8-runtime-vm-bridge · level 6 · 502 lines (375 code) · 1 files · 35 fns (15 tests) · cyclomatic Σ 53

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

Declared but never named in this crate's source: cre8-runtime-contracts (normal).

Files

lowhigh

Heaviest functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
require_stringsrc/lib.rs:210fn73502.8
RuntimeContextHostBridge::dispatch_rawsrc/lib.rs:87method51131.9
RuntimeContextHostBridge::newsrc/lib.rs:72method311201.8
RuntimeContextHostBridge::dispatchsrc/lib.rs:78trait impl621111.7
make_statesrc/lib.rs:272fn811101.7
raw_callsrc/lib.rs:281fn311001.5
RuntimeContextHostBridge::lock_statesrc/lib.rs:93method31101
raw_action_argssrc/lib.rs:98fn62101
dispatch_actionsrc/lib.rs:105fn93131
dispatch_service_actionsrc/lib.rs:115fn155140.8
env_valuesrc/lib.rs:131fn84100.8
dispatch_runtime_actionsrc/lib.rs:140fn84130.8
VmHostState::snapshotsrc/lib.rs:48method81200.8
VmHostState::apply_tosrc/lib.rs:57method41200.8
emit_eventsrc/lib.rs:173fn203110.7
request_connectionsrc/lib.rs:194fn91100.7
request_datasrc/lib.rs:204fn51110.7
run_vm_handlersrc/lib.rs:237fn261140.7
service_insertsrc/lib.rs:149fn61120.7
service_getsrc/lib.rs:156fn51120.7
service_containssrc/lib.rs:162fn41110.7
service_removesrc/lib.rs:167fn51110.7
services_insert_then_get_roundtripssrc/lib.rs:286fn101040.5
services_contains_reports_membershipsrc/lib.rs:298fn111040.5
env_reads_return_snapshot_valuessrc/lib.rs:311fn91040.5
emit_event_appends_to_pending_queuesrc/lib.rs:322fn181040.5
unknown_action_returns_errorsrc/lib.rs:342fn61040.5
services_insert_defaults_missing_value_to_nullsrc/lib.rs:350fn101040.5
services_remove_deletes_existing_keysrc/lib.rs:362fn121040.5
request_views_return_gateway_fields_and_null_defaultssrc/lib.rs:376fn231040.5
emit_event_keeps_nonempty_trace_id_and_existing_queuesrc/lib.rs:401fn251040.5
service_actions_validate_string_argumentssrc/lib.rs:428fn131040.5
non_raw_host_actions_are_rejectedsrc/lib.rs:443fn121030.5
snapshot_apply_restores_context_servicessrc/lib.rs:457fn201030.5
run_vm_handler_round_trips_context_statesrc/lib.rs:479fn231020.5

Outside the workspace

anyhow cre8-vm serde serde_json