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
crates/cre8-app-emulation/src/app.rs
Items
struct EmulationApp static APP_SESSION_TEST_LOCK static DEPENDENCIES static ROUTES static GOSSIP_TOPICS const APP_SPEC static META static VIEW_DEFINITIONS static PRESENTATION static VIEW_STRUCTURE struct WriteMemRequest struct IssueCertificateRequest enum ResolvedDriverProvider type PlainHandler type SessionHandler struct SessionCall enum Access struct RawRoute static RAW_ROUTES impl RuntimeApp for EmulationApp struct StartFacts impl StartFacts struct ApplySolverPlanRequest struct CheckpointSolveRequest struct TranspileFunctionRequest struct TranspileSource struct TranspileCompileOutput struct HotSwapRequest const MAX_ROM_EDITS_PER_REQUEST const MAX_ROM_PATCH_NOTE_CHARS const MAX_DISASM_LINES const EMIT_TARGET_ALIASES struct VerifyCertificateRequest static LLM_DRIVER_OWNERS static NEXT_LLM_DRIVER struct SharedSessionDriver impl SharedSessionDriver impl SessionDriver for SharedSessionDriver struct LiveSessionCleanup impl Drop for LiveSessionCleanup
Functions
By call-graph weight (PageRank; 1.0 is the average function). 178 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| json_u64src/app.rs:2102 | fn | 14 | 5 | 15 | 0 | 4.9 | |
| bad_requestsrc/app.rs:917 | fn | 3 | 1 | 17 | 2 | 4.5 | |
| SharedSessionDriver::with_sessionsrc/app.rs:2466 | method | 9 | 3 | 5 | 2 | 2 | |
| optional_stringsrc/app.rs:956 | fn | 3 | 1 | 3 | 0 | 1.8 | |
| parse_json_bodysrc/app.rs:913 | fn | 3 | 1 | 12 | 1 | 1.7 | |
| decode_required_b64_fieldsrc/app.rs:1887 | fn | 15 | 1 | 4 | 2 | 1.4 | |
| session_lookup_responsesrc/app.rs:639 | fn | 7 | 2 | 9 | 2 | 1.4 | |
| requested_session_idsrc/app.rs:611 | fn | 12 | 3 | 4 | 0 | 1.4 | |
| checkpoint_v1_errorsrc/app.rs:1071 | fn | 6 | 1 | 3 | 2 | 1.3 | |
| dispatch_raw_routesrc/app.rs:488 | fn | 15 | 6 | 1 | 5 | 1.1 | |
| require_named_sessionsrc/app.rs:1143 | fn | 6 | 2 | 6 | 2 | 1.1 | |
| durable_owner_gatesrc/app.rs:567 | fn | 15 | 4 | 9 | 4 | 1.1 | |
| canonical_emit_targetsrc/app.rs:1935 | fn | 3 | 1 | 1 | 0 | 1 | |
| save_checkpoint_v1_responsesrc/app.rs:1107 | fn | 17 | 3 | 2 | 2 | 1 | |
| load_checkpoint_v1_responsesrc/app.rs:1129 | fn | 6 | 2 | 2 | 3 | 1 | |
| route_accesssrc/app.rs:2866 | fn | 3 | 1 | 2 | 0 | 1 | |
| parse_rom_editsrc/app.rs:1709 | fn | 44 | 6 | 1 | 5 | 1 | |
| storage_failuresrc/app.rs:583 | fn | 3 | 1 | 5 | 1 | 0.9 | |
| handle_transpile_functionsrc/app.rs:1297 | fn | 10 | 3 | 1 | 4 | 0.9 | |
| handle_achievements_listsrc/app.rs:2183 | fn | 7 | 1 | 1 | 2 | 0.9 | |
| handle_achievements_registersrc/app.rs:2191 | fn | 15 | 2 | 1 | 3 | 0.9 | |
| handle_issue_certificatesrc/app.rs:2233 | fn | 98 | 3 | 1 | 4 | 0.9 | |
| handle_verify_certificatesrc/app.rs:2379 | fn | 11 | 3 | 1 | 5 | 0.9 | |
| with_resolved_sessionsrc/app.rs:519 | fn | 45 | 12 | 5 | 7 | 0.9 | |
| require_sm83src/app.rs:1755 | fn | 4 | 2 | 3 | 1 | 0.8 | |
| decode_rom_from_jsonsrc/app.rs:1920 | fn | 10 | 1 | 1 | 0 | 0.8 | |
| json_string_orsrc/app.rs:952 | fn | 3 | 1 | 4 | 1 | 0.8 | |
| parse_solver_plan_framesrc/app.rs:2030 | fn | 7 | 1 | 1 | 1 | 0.8 | |
| parse_solver_plan_controllerssrc/app.rs:2038 | fn | 15 | 3 | 1 | 1 | 0.8 | |
| build_round_trip_proof_reportsrc/app.rs:1972 | fn | 25 | 4 | 1 | 0 | 0.8 | |
| resolve_request_sessionsrc/app.rs:624 | fn | 3 | 1 | 1 | 3 | 0.8 | |
| optimized_round_trip_reportsrc/app.rs:1418 | fn | 14 | 2 | 1 | 0 | 0.8 | |
| wasm_compatible_targetsrc/app.rs:1501 | fn | 3 | 2 | 1 | 0 | 0.8 | |
| parse_tas_eventssrc/app.rs:2359 | fn | 8 | 1 | 1 | 2 | 0.8 | |
| source_from_rom_requestsrc/app.rs:1903 | fn | 16 | 1 | 2 | 2 | 0.7 | |
| requestsrc/app.rs:2954 | fn | 11 | 2 | 2 | 0 | 0.7 | |
| parse_llm_start_requestsrc/app.rs:2552 | fn | 13 | 1 | 1 | 2 | 0.7 | |
| resolve_llm_driver_providersrc/app.rs:2566 | fn | 21 | 3 | 1 | 5 | 0.7 | |
| dynamic_raw_route_responsesrc/app.rs:449 | fn | 29 | 10 | 1 | 6 | 0.7 | |
| handle_exact_raw_routesrc/app.rs:483 | fn | 4 | 2 | 1 | 1 | 0.7 | |
| parse_apply_solver_plan_requestsrc/app.rs:1207 | fn | 6 | 1 | 1 | 4 | 0.7 | |
| apply_solver_plan_responsesrc/app.rs:1214 | fn | 6 | 2 | 1 | 4 | 0.7 | |
| solve_from_checkpoint_responsesrc/app.rs:1238 | fn | 6 | 2 | 1 | 4 | 0.7 | |
| parse_checkpoint_solve_requestsrc/app.rs:1265 | fn | 19 | 1 | 1 | 10 | 0.7 | |
| compile_hot_swap_bodysrc/app.rs:1512 | fn | 5 | 1 | 1 | 3 | 0.7 | |
| apply_compiled_hot_swapsrc/app.rs:1553 | fn | 32 | 1 | 1 | 2 | 0.7 | |
| solver_plan_rootsrc/app.rs:1998 | fn | 3 | 1 | 2 | 0 | 0.7 | |
| parse_solver_plan_inputssrc/app.rs:2002 | fn | 10 | 1 | 2 | 3 | 0.7 | |
| resolve_optional_request_sessionsrc/app.rs:630 | fn | 8 | 4 | 3 | 3 | 0.7 | |
| parse_hot_swap_requestsrc/app.rs:1524 | fn | 13 | 3 | 1 | 4 | 0.7 | |
| compile_hot_swap_requestsrc/app.rs:1546 | fn | 6 | 1 | 1 | 1 | 0.7 | |
| solver_plan_tassrc/app.rs:2013 | fn | 6 | 1 | 1 | 0 | 0.7 | |
| parse_solver_plan_inputsrc/app.rs:2020 | fn | 9 | 1 | 1 | 2 | 0.7 | |
| solver_plan_frame_countsrc/app.rs:2054 | fn | 8 | 1 | 1 | 1 | 0.7 | |
| parse_transpile_function_requestsrc/app.rs:1341 | fn | 22 | 2 | 1 | 7 | 0.7 | |
| compile_transpile_requestsrc/app.rs:1380 | fn | 9 | 3 | 1 | 4 | 0.7 | |
| transpile_success_responsesrc/app.rs:1472 | fn | 24 | 1 | 1 | 2 | 0.7 | |
| parse_issue_certificate_requestsrc/app.rs:2332 | fn | 18 | 1 | 1 | 5 | 0.7 | |
| with_request_sessionsrc/app.rs:506 | fn | 12 | 2 | 1 | 2 | 0.7 | |
| decode_certificate_valuesrc/app.rs:2430 | fn | 8 | 1 | 1 | 2 | 0.7 | |
| rom_patch_responsesrc/app.rs:1676 | fn | 11 | 1 | 2 | 1 | 0.7 | |
| gb_cpu_addr_offsetsrc/app.rs:1832 | fn | 12 | 2 | 1 | 4 | 0.7 | |
| optional_string_aliassrc/app.rs:960 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| parse_verify_certificate_requestsrc/app.rs:2396 | fn | 7 | 1 | 1 | 3 | 0.6 | |
| verify_certificate_responsesrc/app.rs:2404 | fn | 7 | 1 | 1 | 1 | 0.6 | |
| solver_plan_applied_responsesrc/app.rs:1221 | fn | 9 | 1 | 1 | 1 | 0.6 | |
| checkpoint_solve_responsesrc/app.rs:1245 | fn | 15 | 1 | 1 | 1 | 0.6 | |
| hot_swap_function_namesrc/app.rs:1538 | fn | 7 | 1 | 1 | 0 | 0.6 | |
| compile_optimized_transpilesrc/app.rs:1390 | fn | 27 | 1 | 1 | 2 | 0.6 | |
| compile_wasm_transpilesrc/app.rs:1433 | fn | 19 | 1 | 1 | 0 | 0.6 | |
| compile_text_transpilesrc/app.rs:1453 | fn | 18 | 1 | 1 | 0 | 0.6 | |
| is_wasm_emit_targetsrc/app.rs:1497 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| json_usize_orsrc/app.rs:1289 | fn | 3 | 1 | 2 | 1 | 0.6 | |
| parse_write_mem_addrsrc/app.rs:1875 | fn | 11 | 3 | 1 | 2 | 0.6 | |
| parse_issue_certificate_tassrc/app.rs:2351 | fn | 7 | 2 | 1 | 2 | 0.6 | |
| parse_optional_b64_fieldsrc/app.rs:2368 | fn | 10 | 3 | 1 | 1 | 0.6 | |
| llm_driver_ownersrc/app.rs:2443 | fn | 4 | 1 | 3 | 0 | 0.6 | |
| handle_llm_stopsrc/app.rs:2597 | fn | 44 | 6 | 2 | 12 | 0.6 | |
| handle_llm_logsrc/app.rs:2656 | fn | 27 | 3 | 2 | 9 | 0.6 | |
| apply_inputsrc/app.rs:781 | fn | 15 | 4 | 2 | 2 | 0.6 | |
| parse_write_mem_requestsrc/app.rs:1866 | fn | 8 | 1 | 1 | 4 | 0.6 | |
| durable_driver_gatesrc/app.rs:2642 | fn | 13 | 4 | 2 | 2 | 0.6 | |
| dynamic_route_matchessrc/app.rs:479 | fn | 3 | 2 | 1 | 0 | 0.6 | |
| handle_achievements_eventssrc/app.rs:2207 | fn | 8 | 1 | 1 | 2 | 0.6 | |
| non_empty_json_stringsrc/app.rs:1376 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| session_info_jsonsrc/app.rs:724 | fn | 5 | 1 | 1 | 0 | 0.6 | |
| parse_transpile_sourcesrc/app.rs:1364 | fn | 11 | 2 | 1 | 5 | 0.6 | |
| normalize_emit_targetsrc/app.rs:1931 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| parse_pass_listsrc/app.rs:1947 | fn | 24 | 2 | 1 | 0 | 0.6 | |
| emit_cycle_receiptsrc/app.rs:1037 | fn | 5 | 1 | 3 | 1 | 0.6 | |
| decode_start_romsrc/app.rs:939 | fn | 5 | 1 | 1 | 1 | 0.6 | |
| start_trace_optionssrc/app.rs:945 | fn | 6 | 1 | 1 | 0 | 0.6 | |
| parse_rom_editssrc/app.rs:1692 | fn | 16 | 4 | 1 | 1 | 0.6 | |
| checkpoint_framessrc/app.rs:1285 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| parse_solver_plan_probessrc/app.rs:2063 | fn | 27 | 1 | 1 | 1 | 0.6 | |
| unique_solver_choicessrc/app.rs:2091 | fn | 10 | 3 | 1 | 0 | 0.6 | |
| remove_llm_driver_ownersrc/app.rs:2456 | fn | 3 | 1 | 2 | 0 | 0.6 | |
| set_llm_driver_ownersrc/app.rs:2448 | fn | 7 | 1 | 2 | 0 | 0.5 | |
| prepare_llm_startsrc/app.rs:2543 | fn | 8 | 1 | 1 | 2 | 0.5 | |
| raw_resumesrc/app.rs:2698 | fn | 4 | 1 | 1 | 2 | 0.5 | |
| flush_before_endsrc/app.rs:596 | fn | 12 | 4 | 2 | 6 | 0.5 | |
| raw_inputsrc/app.rs:736 | fn | 38 | 7 | 1 | 3 | 0.5 | |
| StartFacts::ofsrc/app.rs:886 | method | 12 | 2 | 1 | 2 | 0.5 | |
| StartFacts::into_infosrc/app.rs:899 | method | 12 | 1 | 1 | 2 | 0.5 | |
| parse_start_configsrc/app.rs:921 | fn | 17 | 2 | 1 | 7 | 0.5 | |
| raw_pausesrc/app.rs:2690 | fn | 7 | 1 | 1 | 2 | 0.5 | |
| EmulationApp::prepare_shutdownsrc/app.rs:361 | trait impl | 8 | 2 | 0 | 2 | 0.5 | |
| EmulationApp::shutdownsrc/app.rs:370 | trait impl | 21 | 2 | 0 | 10 | 0.5 | |
| EmulationApp::metasrc/app.rs:392 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmulationApp::bootsrc/app.rs:396 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmulationApp::handlesrc/app.rs:400 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmulationApp::connectsrc/app.rs:404 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmulationApp::raw_handlesrc/app.rs:408 | trait impl | 7 | 2 | 0 | 2 | 0.5 | |
| EmulationApp::presentationsrc/app.rs:416 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmulationApp::view_structuresrc/app.rs:420 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmulationApp::view_definitionssrc/app.rs:424 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmulationApp::manifold_contractssrc/app.rs:428 | trait impl | 3 | 1 | 0 | 2 | 0.5 | |
| EmulationApp::gossip_topicssrc/app.rs:432 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmulationApp::handles_websocket_pathsrc/app.rs:437 | trait impl | 5 | 1 | 0 | 0 | 0.5 | |
| EmulationApp::handle_websocketsrc/app.rs:444 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| raw_stream_attachsrc/app.rs:587 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| raw_ancestry_sharedsrc/app.rs:647 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_ancestry_indexsrc/app.rs:651 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_fingerprintsrc/app.rs:655 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_framesrc/app.rs:659 | fn | 20 | 4 | 0 | 5 | 0.5 | |
| raw_frame_pngsrc/app.rs:682 | fn | 25 | 8 | 0 | 6 | 0.5 | |
| raw_sessionssrc/app.rs:710 | fn | 13 | 1 | 0 | 5 | 0.5 | |
| raw_document_patchsrc/app.rs:731 | fn | 4 | 1 | 0 | 3 | 0.5 | |
| raw_startsrc/app.rs:804 | fn | 71 | 13 | 0 | 25 | 0.5 | |
| raw_stopsrc/app.rs:967 | fn | 65 | 8 | 0 | 20 | 0.5 | |
| raw_save_statesrc/app.rs:1048 | fn | 11 | 1 | 0 | 1 | 0.5 | |
| raw_load_statesrc/app.rs:1064 | fn | 6 | 2 | 0 | 3 | 0.5 | |
| raw_save_cartridge_storagesrc/app.rs:1078 | fn | 17 | 5 | 0 | 6 | 0.5 | |
| raw_checkpoint_capabilitiessrc/app.rs:1096 | fn | 6 | 2 | 0 | 4 | 0.5 | |
| raw_save_checkpoint_v1src/app.rs:1103 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_load_checkpoint_v1src/app.rs:1125 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_apply_solver_plansrc/app.rs:1136 | fn | 6 | 2 | 0 | 2 | 0.5 | |
| raw_step_framesrc/app.rs:1150 | fn | 17 | 5 | 0 | 7 | 0.5 | |
| raw_read_memsrc/app.rs:1168 | fn | 33 | 7 | 0 | 9 | 0.5 | |
| raw_solve_from_checkpointsrc/app.rs:1231 | fn | 6 | 2 | 0 | 2 | 0.5 | |
| raw_transpile_functionsrc/app.rs:1293 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_hot_swap_functionsrc/app.rs:1505 | fn | 6 | 2 | 0 | 2 | 0.5 | |
| raw_undo_hot_swapsrc/app.rs:1586 | fn | 24 | 3 | 0 | 4 | 0.5 | |
| raw_rom_patchsrc/app.rs:1623 | fn | 14 | 4 | 0 | 7 | 0.5 | |
| raw_rom_patch_undosrc/app.rs:1638 | fn | 6 | 2 | 0 | 4 | 0.5 | |
| raw_rom_patch_logsrc/app.rs:1645 | fn | 14 | 1 | 0 | 4 | 0.5 | |
| raw_rom_patch_imagesrc/app.rs:1660 | fn | 15 | 1 | 0 | 1 | 0.5 | |
| raw_asmsrc/app.rs:1762 | fn | 32 | 3 | 0 | 5 | 0.5 | |
| raw_disasmsrc/app.rs:1800 | fn | 29 | 3 | 0 | 9 | 0.5 | |
| raw_write_memsrc/app.rs:1854 | fn | 11 | 3 | 0 | 4 | 0.5 | |
| raw_statussrc/app.rs:2117 | fn | 44 | 5 | 0 | 9 | 0.5 | |
| raw_achievements_listsrc/app.rs:2175 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_achievements_registersrc/app.rs:2179 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_issue_certificatesrc/app.rs:2225 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_verify_certificatesrc/app.rs:2229 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| SharedSessionDriver::is_runningsrc/app.rs:2478 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| SharedSessionDriver::frame_sequencesrc/app.rs:2481 | trait impl | 3 | 1 | 0 | 2 | 0.5 | |
| SharedSessionDriver::snapshot_framebuffersrc/app.rs:2484 | trait impl | 6 | 1 | 0 | 2 | 0.5 | |
| SharedSessionDriver::read_memorysrc/app.rs:2490 | trait impl | 3 | 1 | 0 | 2 | 0.5 | |
| SharedSessionDriver::set_inputsrc/app.rs:2493 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| raw_llm_startsrc/app.rs:2498 | fn | 44 | 5 | 0 | 10 | 0.5 | |
| missing_llm_provider_messagesrc/app.rs:2588 | fn | 8 | 2 | 0 | 0 | 0.5 | |
| raw_step_insnsrc/app.rs:2703 | fn | 25 | 2 | 0 | 4 | 0.5 | |
| raw_tracesrc/app.rs:2729 | fn | 12 | 2 | 0 | 6 | 0.5 | |
| raw_statssrc/app.rs:2742 | fn | 6 | 2 | 0 | 3 | 0.5 | |
| raw_stats_resetsrc/app.rs:2749 | fn | 6 | 2 | 0 | 4 | 0.5 | |
| raw_vram_heatmapsrc/app.rs:2756 | fn | 6 | 2 | 0 | 3 | 0.5 | |
| raw_vram_heatmap_resetsrc/app.rs:2763 | fn | 6 | 2 | 0 | 4 | 0.5 | |
| raw_current_pcsrc/app.rs:2770 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| raw_current_originsrc/app.rs:2774 | fn | 13 | 3 | 0 | 4 | 0.5 | |
| trace_meta_payload_json_preserves_trace_v2_ordersrc/app.rs:2797 | fn | 45 | 1 | 0 | 0 | 0.5 | |
| meta_readback_matches_defaults_and_explicit_trace_optionssrc/app.rs:2844 | fn | 21 | 1 | 0 | 0 | 0.5 | |
| complete_checkpoint_v1_http_contract_preserves_legacy_and_rejects_nonempty_save_bodysrc/app.rs:2871 | fn | 39 | 4 | 0 | 8 | 0.5 | |
| every_post_route_but_the_index_read_needs_a_callersrc/app.rs:2912 | fn | 8 | 2 | 0 | 0 | 0.5 | |
| session_mutations_are_owner_gatedsrc/app.rs:2922 | fn | 31 | 2 | 0 | 1 | 0.5 | |
| the_asm_route_assembles_without_a_sessionsrc/app.rs:2967 | fn | 18 | 1 | 0 | 2 | 0.5 | |
| LiveSessionCleanup::dropsrc/app.rs:2990 | trait impl | 5 | 2 | 0 | 3 | 0.5 | |
| an_owned_session_admits_only_its_ownersrc/app.rs:2998 | fn | 165 | 6 | 0 | 14 | 0.5 |
Source not readable from this process.