rust 1,854,395 · typescript 233,161 · javascript 131,995 · python 19,227 · 6,379 files · digest 17dcda71e44b · built in 1.5 s · crystals off
crates/cre8-runtime-host/src/host_bridge.rs
Items
struct RuntimeEnv enum HostCall impl HostCall struct HostResponse impl HostResponse enum RuntimeEvent struct NetFetchQueryPair trait RuntimeHost struct NullHost impl RuntimeHost for NullHost struct OwnedNullProcess struct ExitedNullProcess struct NullProcessRegistry static REGISTRY static NEXT_ID static BOOT_ID const MAX_EXITED_TOMBSTONES struct HostSlot static ACTIVE_HOST impl HostSlot impl Debug for HostSlot impl Serialize for HostSlot impl Deserialize for HostSlot struct RecordingHost impl RuntimeHost for RecordingHost
Functions
By call-graph weight (PageRank; 1.0 is the average function). 59 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| active_hostsrc/host_bridge.rs:741 | fn | 4 | 1 | 6 | 1 | 7.5 | |
| active_host_cellsrc/host_bridge.rs:737 | fn | 3 | 1 | 2 | 0 | 7.4 | |
| HostResponse::oksrc/host_bridge.rs:188 | method | 3 | 1 | 10 | 0 | 4.6 | |
| HostResponse::errsrc/host_bridge.rs:192 | method | 3 | 1 | 10 | 0 | 3 | |
| HostResponse::crypto_random_bytessrc/host_bridge.rs:203 | method | 20 | 3 | 3 | 0 | 1.5 | |
| null_process_boot_idsrc/host_bridge.rs:532 | fn | 10 | 1 | 2 | 0 | 1.4 | |
| HostCall::bridge_allowedsrc/host_bridge.rs:167 | method | 6 | 1 | 2 | 0 | 1.3 | |
| remember_exited_processsrc/host_bridge.rs:628 | fn | 17 | 3 | 3 | 0 | 1.1 | |
| HostCall::kind_tagsrc/host_bridge.rs:144 | method | 6 | 1 | 2 | 0 | 1.1 | |
| null_time_now_responsesrc/host_bridge.rs:410 | fn | 14 | 1 | 1 | 1 | 1 | |
| null_crypto_random_responsesrc/host_bridge.rs:428 | fn | 18 | 2 | 1 | 2 | 1 | |
| next_null_process_instance_idsrc/host_bridge.rs:526 | fn | 4 | 1 | 2 | 1 | 0.8 | |
| null_process_registrysrc/host_bridge.rs:520 | fn | 4 | 1 | 3 | 0 | 0.8 | |
| null_env_get_responsesrc/host_bridge.rs:447 | fn | 11 | 1 | 1 | 1 | 0.7 | |
| valid_null_process_idsrc/host_bridge.rs:623 | fn | 3 | 2 | 2 | 0 | 0.7 | |
| null_exited_process_responsesrc/host_bridge.rs:647 | fn | 9 | 1 | 2 | 1 | 0.7 | |
| null_process_spawn_responsesrc/host_bridge.rs:459 | fn | 39 | 7 | 1 | 5 | 0.7 | |
| null_process_kill_responsesrc/host_bridge.rs:570 | fn | 51 | 10 | 1 | 5 | 0.7 | |
| null_process_status_responsesrc/host_bridge.rs:665 | fn | 57 | 9 | 1 | 6 | 0.7 | |
| null_host_responsesrc/host_bridge.rs:348 | fn | 8 | 1 | 1 | 6 | 0.6 | |
| set_active_hostsrc/host_bridge.rs:746 | fn | 5 | 2 | 1 | 1 | 0.6 | |
| HostSlot::newsrc/host_bridge.rs:753 | method | 3 | 1 | 1 | 0 | 0.6 | |
| register_null_processsrc/host_bridge.rs:544 | fn | 24 | 3 | 1 | 3 | 0.6 | |
| null_time_responsesrc/host_bridge.rs:357 | fn | 6 | 2 | 1 | 1 | 0.6 | |
| null_peer_responsesrc/host_bridge.rs:364 | fn | 6 | 2 | 1 | 1 | 0.6 | |
| null_crypto_responsesrc/host_bridge.rs:371 | fn | 6 | 2 | 1 | 1 | 0.6 | |
| null_env_responsesrc/host_bridge.rs:378 | fn | 7 | 3 | 1 | 2 | 0.6 | |
| null_process_responsesrc/host_bridge.rs:386 | fn | 14 | 4 | 1 | 3 | 0.6 | |
| null_custom_responsesrc/host_bridge.rs:401 | fn | 8 | 2 | 1 | 1 | 0.6 | |
| default_getsrc/host_bridge.rs:138 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| NullHost::callsrc/host_bridge.rs:340 | trait impl | 4 | 1 | 0 | 3 | 0.5 | |
| NullHost::emitsrc/host_bridge.rs:345 | trait impl | 1 | 1 | 0 | 0 | 0.5 | |
| null_process_kill_responsesrc/host_bridge.rs:658 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| null_process_status_responsesrc/host_bridge.rs:724 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| HostSlot::callsrc/host_bridge.rs:757 | method | 6 | 2 | 0 | 0 | 0.5 | |
| HostSlot::emitsrc/host_bridge.rs:764 | method | 5 | 2 | 0 | 0 | 0.5 | |
| HostSlot::fmtsrc/host_bridge.rs:772 | trait impl | 3 | 2 | 0 | 0 | 0.5 | |
| HostSlot::serializesrc/host_bridge.rs:778 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| HostSlot::deserializesrc/host_bridge.rs:784 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| bridge_allows_only_side_effect_light_kindssrc/host_bridge.rs:795 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| bridge_denies_env_and_other_privileged_kindssrc/host_bridge.rs:804 | fn | 33 | 1 | 0 | 1 | 0.5 | |
| kind_tag_matches_serde_tagsrc/host_bridge.rs:839 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| null_host_time_now_returns_unix_mssrc/host_bridge.rs:845 | fn | 6 | 1 | 0 | 0 | 0.5 | |
| null_host_peer_discover_returns_empty_listsrc/host_bridge.rs:853 | fn | 7 | 1 | 0 | 0 | 0.5 | |
| null_host_crypto_random_answers_the_base64_contract_shapesrc/host_bridge.rs:862 | fn | 10 | 1 | 0 | 1 | 0.5 | |
| crypto_random_bytes_decodes_the_reply_every_host_sendssrc/host_bridge.rs:874 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| crypto_random_bytes_fails_closed_on_any_other_replysrc/host_bridge.rs:884 | fn | 19 | 1 | 0 | 3 | 0.5 | |
| null_host_env_set_and_default_calls_are_noopssrc/host_bridge.rs:905 | fn | 14 | 1 | 0 | 0 | 0.5 | |
| net_fetch_defaults_to_get_when_deserialized_without_methodsrc/host_bridge.rs:921 | fn | 9 | 1 | 0 | 0 | 0.5 | |
| host_call_and_runtime_event_variants_serializesrc/host_bridge.rs:932 | fn | 114 | 3 | 0 | 0 | 0.5 | |
| null_host_env_get_and_process_spawn_pathssrc/host_bridge.rs:1048 | fn | 33 | 1 | 0 | 0 | 0.5 | |
| null_host_custom_action_requires_real_hostsrc/host_bridge.rs:1083 | fn | 7 | 1 | 0 | 0 | 0.5 | |
| null_host_reports_unknown_process_lifecycle_without_false_successsrc/host_bridge.rs:1092 | fn | 15 | 1 | 0 | 0 | 0.5 | |
| null_host_process_instance_ids_are_boot_scoped_and_uniquesrc/host_bridge.rs:1109 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| exited_process_tombstones_evict_in_observation_ordersrc/host_bridge.rs:1120 | fn | 12 | 2 | 0 | 1 | 0.5 | |
| default_host_slot_uses_null_hostsrc/host_bridge.rs:1134 | fn | 6 | 1 | 0 | 0 | 0.5 | |
| RecordingHost::callsrc/host_bridge.rs:1146 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| RecordingHost::emitsrc/host_bridge.rs:1150 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| host_slot_active_emit_debug_and_serde_pathssrc/host_bridge.rs:1156 | fn | 21 | 1 | 0 | 3 | 0.5 |
Source not readable from this process.