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-gateway gateway cargo crate

GatewayApp — HTTP/WS server + auth + route registry + pipeline + GatewaySnapshot + handler registries (compute/mcp/http-special). Extracted from src/apps/gateway (2026-05-23, mega-mode slice).

crates/cre8-app-gateway · level 13 · 29,397 lines (24,179 code) · 74 files · 1,622 fns (470 tests) · cyclomatic Σ 3,277

37workspace deps
15direct dependents
86transitive dependents
557calls out
141calls in
1500call-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 · 11 calls · source referencenormal dep · 22 calls · source referencenormal dep · 7 calls · source referencenormal dep · 4 calls · source referencenormal dep · 2 calls · source referencenormal dep · 41 calls · source referencenormal dep · 6 calls · source referencenormal dep · 1 calls · source referencenormal dep · 4 calls · source referencenormal dep · 0 calls · incomplete scannormal dep · 6 calls · source referencenormal dep · 8 calls · source referencenormal dep · 1 calls · source referencenormal dep · 37 calls · source referencenormal dep · 9 calls · source referencenormal dep · 1 calls · source referencenormal dep · 2 calls · source referencenormal dep · 2 calls · source referencenormal dep · 0 calls · source referencenormal dep · 24 calls · source referencenormal dep · 0 calls · source referencenormal dep · 17 calls · source referencenormal dep · 5 calls · source referencenormal dep · 5 calls · source referencenormal dep · 42 calls · source referencenormal dep · 5 calls · source referencenormal dep · 35 calls · source referencenormal dep · 7 calls · source referencenormal dep · 17 calls · source referencenormal dep · 1 calls · source referencenormal dep · 134 calls · source referencenormal dep · 24 calls · source referencenormal dep · 52 calls · source referencenormal dep · 0 calls · source referencenormal dep · 62 calls · source referencenormal dep · 0 calls · source referencenormal dep · 0 calls · source referencenormal dep · 9 calls · source referencenormal dep · 1 calls · source referencenormal dep · 18 calls · source referencenormal dep · 3 calls · source referencenormal dep · 1 calls · source referencenormal dep · 1 calls · source referencedev dep · 17 calls · source referencenormal dep · 14 calls · source referencenormal dep · 15 calls · source referencenormal dep · 0 calls · source referencenormal dep · 5 calls · source referencenormal dep · 3 calls · source referencenormal dep · 1 calls · source referencenormal dep · 0 calls · source referencenormal dep · 4 calls · source referencenormal dep · 6 calls · source referencedev dep · 0 calls · manifest wiringapp-gatewayL13 · 24,179 linescre8-app-gatewayapp-audioL15 · 54,316 linescre8-app-audioapp-capitalstrategyL19 · 85,927 linescre8-app-capitalstrategyapp-cliL14 · 3,200 linescre8-app-cliapp-code_changeL22 · 2,183 linescre8-app-code_changeapp-computeL14 · 94,808 linescre8-app-computeapp-conduitL14 · 79,226 linescre8-app-conduitapp-compute-coreL5 · 6,618 linescre8-app-compute-coreapp-coreL9 · 510 linescre8-app-coreapp-gateway-apiL7 · 500 linescre8-app-gateway-apiapp-intelligenceL12 · 6,289 linescre8-app-intelligenceapp-interpretL11 · 13,233 linescre8-app-interpretapp-manifoldL10 · 18,941 linescre8-app-manifoldapp-messaging-apiL7 · 131 linescre8-app-messaging-apiapp-networkL11 · 15,383 linescre8-app-networkapp-network-clientL4 · 3,656 linescre8-app-network-clientapp-network-federation-st…L6 · 956 linescre8-app-network-federation-storeapp-network-modelL4 · 2,198 linescre8-app-network-modelapp-passport-modelL4 · 2,434 linescre8-app-passport-modelapp-peerL11 · 6,235 linescre8-app-peerapp-protocolL9 · 26,097 linescre8-app-protocolapp-shop-apiL7 · 77 linescre8-app-shop-apiapp-truthL7 · 20,485 linescre8-app-truthapp-viewL10 · 6,011 linescre8-app-viewapp-view-clientL0 · 258,568 linescre8-app-view-clientapp-view-libL8 · 89,193 linescre8-app-view-libplatform-entropyL3 · 59 linescre8-platform-entropyplatform-envL3 · 316 linescre8-platform-envplatform-fsL0 · 207 linescre8-platform-fsplatform-timeL3 · 65 linescre8-platform-timeruntime-app-catalog-apiL0 · 96 linescre8-runtime-app-catalog-apiruntime-app-typesL6 · 2,860 linescre8-runtime-app-typesruntime-connection-catalo…L1 · 580 linescre8-runtime-connection-catalog-apiruntime-contractsL0 · 6,322 linescre8-runtime-contractsruntime-coreL2 · 747 linescre8-runtime-coreruntime-dispatch-apiL7 · 496 linescre8-runtime-dispatch-apiruntime-hostL1 · 1,649 linescre8-runtime-hostruntime-surface-apiL7 · 66 linescre8-runtime-surface-apiruntime-view-apiL7 · 158 linescre8-runtime-view-apiutil-connection-actionL0 · 112 linescre8-util-connection-actionutil-cryptoL3 · 749 linescre8-util-cryptoutil-lock-extL0 · 195 linescre8-util-lock-extutil-raw-route-authL7 · 632 linescre8-util-raw-route-authutil-vm-valueL0 · 446 linescre8-util-vm-valuetest-helpersL29 · 557 linescre8-test-helpersapp-marketL20 · 16,894 linescre8-app-marketapp-mcpL16 · 3,644 linescre8-app-mcpapp-realmL27 · 7,854 linescre8-app-realmapp-tunnelL14 · 2,369 linescre8-app-tunnelapp-virtualL26 · 25,156 linescre8-app-virtualapp-virtual_bridgeL16 · 11,208 linescre8-app-virtual_bridgeruntime-app-catalogL28 · 681 linescre8-runtime-app-catalogruntime-browserL31 · 445 linescre8-runtime-browserruntime-catalogL29 · 1,374 linescre8-runtime-catalogruntime-test-suiteL0 · 0 linescre8-runtime-test-suite

Files

lowhigh
crates/cre8-app-gateway/src/adapters/http/continuation.rs · 84 lines · 9 fnscrates/cre8-app-gateway/src/adapters/http/core.rs · 881 lines · 58 fnscore.rscrates/cre8-app-gateway/src/adapters/http/mcp.rs · 23 lines · 1 fnscrates/cre8-app-gateway/src/adapters/http/mod.rs · 76 lines · 5 fnscrates/cre8-app-gateway/src/adapters/http/protocol_store.rs · 281 lines · 27 fnsprotocol_…crates/cre8-app-gateway/src/adapters/mod.rs · 3 lines · 0 fnscrates/cre8-app-gateway/src/adapters/ws_server.rs · 35 lines · 3 fnscrates/cre8-app-gateway/src/address.rs · 130 lines · 10 fnsaddres…crates/cre8-app-gateway/src/app.rs · 211 lines · 11 fnsapp.rscrates/cre8-app-gateway/src/auth.rs · 455 lines · 29 fnsauth.rscrates/cre8-app-gateway/src/ballot_wake_cadence.rs · 108 lines · 9 fnscrates/cre8-app-gateway/src/bin/corpus_walk_host/main.rs · 3 lines · 1 fnscrates/cre8-app-gateway/src/bin/corpus_walk_host/run.rs · 136 lines · 17 fnsrun.rscrates/cre8-app-gateway/src/boot.rs · 243 lines · 18 fnsboot.rscrates/cre8-app-gateway/src/chain.rs · 180 lines · 12 fnschain.…crates/cre8-app-gateway/src/compute_bridge_registry.rs · 55 lines · 6 fnscrates/cre8-app-gateway/src/connection/mgmt.rs · 273 lines · 11 fnsmgmt.rscrates/cre8-app-gateway/src/connection/mod.rs · 204 lines · 15 fnsmod.rscrates/cre8-app-gateway/src/context.rs · 428 lines · 43 fnscontext.rscrates/cre8-app-gateway/src/continuation.rs · 646 lines · 55 fnscontinuation.rscrates/cre8-app-gateway/src/crawler_budget.rs · 124 lines · 10 fnscrates/cre8-app-gateway/src/credit_settle_tick.rs · 96 lines · 6 fnscrates/cre8-app-gateway/src/defaults.rs · 4 lines · 0 fnscrates/cre8-app-gateway/src/embedded_assets.rs · 228 lines · 13 fnsembedded…crates/cre8-app-gateway/src/goal_coverage.rs · 70 lines · 4 fnscrates/cre8-app-gateway/src/http_special_registry.rs · 40 lines · 2 fnscrates/cre8-app-gateway/src/http_surface.rs · 69 lines · 4 fnscrates/cre8-app-gateway/src/http_util.rs · 6 lines · 1 fnscrates/cre8-app-gateway/src/init.rs · 97 lines · 3 fnscrates/cre8-app-gateway/src/install.rs · 455 lines · 14 fnsinstall.rscrates/cre8-app-gateway/src/lib.rs · 120 lines · 0 fnscrates/cre8-app-gateway/src/lift.rs · 363 lines · 20 fnslift.rscrates/cre8-app-gateway/src/market_safety.rs · 567 lines · 33 fnsmarket_safety.rscrates/cre8-app-gateway/src/marketplace_tick.rs · 115 lines · 9 fnscrates/cre8-app-gateway/src/mcp_handler_registry.rs · 46 lines · 4 fnscrates/cre8-app-gateway/src/normalizer.rs · 293 lines · 17 fnsnormalize…crates/cre8-app-gateway/src/orchestrator.rs · 170 lines · 6 fnsorchest…crates/cre8-app-gateway/src/peer.rs · 912 lines · 53 fnspeer.rscrates/cre8-app-gateway/src/pipeline.rs · 857 lines · 61 fnspipeline.rscrates/cre8-app-gateway/src/processor.rs · 12 lines · 1 fnscrates/cre8-app-gateway/src/processor_browser.rs · 293 lines · 20 fnsprocessor…crates/cre8-app-gateway/src/protocol_mgmt.rs · 192 lines · 17 fnsprotoco…crates/cre8-app-gateway/src/request_identity.rs · 161 lines · 16 fnsrequest…crates/cre8-app-gateway/src/route_broadcast.rs · 230 lines · 14 fnsroute_br…crates/cre8-app-gateway/src/route_registry.rs · 297 lines · 25 fnsroute_reg…crates/cre8-app-gateway/src/router.rs · 450 lines · 32 fnsrouter.rscrates/cre8-app-gateway/src/routes_meta.rs · 353 lines · 19 fnsroutes_meta…crates/cre8-app-gateway/src/server.rs · 469 lines · 21 fnsserver.rscrates/cre8-app-gateway/src/server_domain_renewal.rs · 51 lines · 3 fnscrates/cre8-app-gateway/src/server_http_helpers.rs · 817 lines · 75 fnsserver_http_help…crates/cre8-app-gateway/src/server_http_matched.rs · 372 lines · 21 fnsserver_http_…crates/cre8-app-gateway/src/server_http_prequeue.rs · 22 lines · 2 fnscrates/cre8-app-gateway/src/server_http_raw.rs · 174 lines · 12 fnsserver_…crates/cre8-app-gateway/src/server_http_runtime.rs · 233 lines · 6 fnsserver_ht…crates/cre8-app-gateway/src/server_http_special.rs · 10 lines · 1 fnscrates/cre8-app-gateway/src/server_http_test_support.rs · 514 lines · 10 fnsserver_http_tes…crates/cre8-app-gateway/src/server_http_workers.rs · 232 lines · 21 fnsserver_h…crates/cre8-app-gateway/src/server_prediction_collector.rs · 40 lines · 3 fnscrates/cre8-app-gateway/src/server_response.rs · 760 lines · 76 fnsserver_response…crates/cre8-app-gateway/src/server_runtime.rs · 1,992 lines · 119 fnsserver_runtime.rscrates/cre8-app-gateway/src/server_startup.rs · 35 lines · 3 fnscrates/cre8-app-gateway/src/server_ws.rs · 1,197 lines · 94 fnsserver_ws.rscrates/cre8-app-gateway/src/service_contracts.rs · 44 lines · 0 fnscrates/cre8-app-gateway/src/service_keys.rs · 1 lines · 0 fnscrates/cre8-app-gateway/src/site_growth_jobs.rs · 56 lines · 6 fnscrates/cre8-app-gateway/src/site_routes.rs · 1,458 lines · 110 fnssite_routes.rscrates/cre8-app-gateway/src/static_serve.rs · 131 lines · 13 fnsstatic_…crates/cre8-app-gateway/src/subdomain_routes.rs · 471 lines · 42 fnssubdomain_rout…crates/cre8-app-gateway/src/tunnel_bridge_registry.rs · 36 lines · 3 fnscrates/cre8-app-gateway/src/types.rs · 346 lines · 11 fnstypes.rscrates/cre8-app-gateway/src/types_browser.rs · 147 lines · 4 fnstypes_b…crates/cre8-app-gateway/src/util.rs · 179 lines · 11 fnsutil.rscrates/cre8-app-gateway/src/view_routes.rs · 3,035 lines · 182 fnsview_routes.rscrates/cre8-app-gateway/src/vm.rs · 282 lines · 29 fnsvm.rs

File call graph

Resolved calls between this crate's files, callers left of callees. Showing the 48 of 65 files most involved in calls.

3 calls4 calls10 calls1 calls2 calls2 calls1 calls7 calls4 calls1 calls1 calls1 calls3 calls1 calls3 calls1 calls1 calls1 calls1 calls1 calls1 calls3 calls5 calls1 calls2 calls1 calls5 calls1 calls5 calls6 calls1 calls1 calls4 calls1 calls2 calls1 calls3 calls1 calls1 calls4 calls6 calls1 calls1 calls1 calls1 calls5 calls3 calls5 calls2 calls2 calls1 calls1 calls10 calls3 calls11 calls2 calls5 calls1 calls10 calls6 calls1 calls1 calls1 calls1 calls2 calls2 calls1 calls11 calls1 calls1 calls2 calls2 calls1 calls1 calls1 calls2 calls3 calls7 calls6 calls2 calls2 calls2 calls2 calls2 calls8 calls1 calls6 calls2 calls6 calls71 calls1 calls1 calls2 calls6 calls1 calls1 calls1 calls4 calls4 calls1 calls1 calls2 calls1 calls12 calls9 calls1 calls1 calls1 calls1 calls2 calls1 calls4 calls1 calls4 calls1 calls1 calls2 calls1 calls1 calls1 calls2 calls1 calls9 calls8 calls3 calls1 calls4 calls2 calls1 calls1 calls1 calls46 calls2 calls2 calls1 calls31 calls2 calls2 calls2 calls1 calls2 calls2 calls10 calls8 calls2 calls1 calls1 calls2 calls2 calls29 calls3 calls2 calls1 calls2 calls3 calls21 calls3 calls2 calls10 calls40 calls1 calls1 calls14 callsserver_runtime.rsserver_runtimecrates/cre8-app-gateway/src/server_runtime.rs · 170 call sites in/outcontext.rscontextcrates/cre8-app-gateway/src/context.rs · 137 call sites in/outserver.rsservercrates/cre8-app-gateway/src/server.rs · 111 call sites in/outserver_response.rsserver_responsecrates/cre8-app-gateway/src/server_response.rs · 104 call sites in/outview_routes.rsview_routescrates/cre8-app-gateway/src/view_routes.rs · 84 call sites in/outserver_http_helpers.rsserver_http_helperscrates/cre8-app-gateway/src/server_http_helpers.rs · 65 call sites in/oututil.rsutilcrates/cre8-app-gateway/src/util.rs · 54 call sites in/outtypes.rstypescrates/cre8-app-gateway/src/types.rs · 52 call sites in/outsite_routes.rssite_routescrates/cre8-app-gateway/src/site_routes.rs · 44 call sites in/outpipeline.rspipelinecrates/cre8-app-gateway/src/pipeline.rs · 36 call sites in/outserver_http_runtime.rsserver_http_runtimecrates/cre8-app-gateway/src/server_http_runtime.rs · 36 call sites in/outcore.rsadapters::http::corecrates/cre8-app-gateway/src/adapters/http/core.rs · 35 call sites in/outserver_http_matched.rsserver_http_matchedcrates/cre8-app-gateway/src/server_http_matched.rs · 35 call sites in/outserver_ws.rsserver_wscrates/cre8-app-gateway/src/server_ws.rs · 34 call sites in/outserver_http_test_support.rsserver_http_test_supportcrates/cre8-app-gateway/src/server_http_test_support.rs · 33 call sites in/outauth.rsauthcrates/cre8-app-gateway/src/auth.rs · 29 call sites in/outprotocol_mgmt.rsprotocol_mgmtcrates/cre8-app-gateway/src/protocol_mgmt.rs · 21 call sites in/outroute_registry.rsroute_registrycrates/cre8-app-gateway/src/route_registry.rs · 21 call sites in/outpeer.rspeercrates/cre8-app-gateway/src/peer.rs · 20 call sites in/outvm.rsvmcrates/cre8-app-gateway/src/vm.rs · 18 call sites in/outserver_http_raw.rsserver_http_rawcrates/cre8-app-gateway/src/server_http_raw.rs · 17 call sites in/outroutes_meta.rsroutes_metacrates/cre8-app-gateway/src/routes_meta.rs · 16 call sites in/outorchestrator.rsorchestratorcrates/cre8-app-gateway/src/orchestrator.rs · 15 call sites in/outroute_broadcast.rsroute_broadcastcrates/cre8-app-gateway/src/route_broadcast.rs · 14 call sites in/outrouter.rsroutercrates/cre8-app-gateway/src/router.rs · 14 call sites in/outserver_http_workers.rsserver_http_workerscrates/cre8-app-gateway/src/server_http_workers.rs · 13 call sites in/outmarket_safety.rsmarket_safetycrates/cre8-app-gateway/src/market_safety.rs · 12 call sites in/outboot.rsbootcrates/cre8-app-gateway/src/boot.rs · 10 call sites in/outcredit_settle_tick.rscredit_settle_tickcrates/cre8-app-gateway/src/credit_settle_tick.rs · 10 call sites in/outlift.rsliftcrates/cre8-app-gateway/src/lift.rs · 10 call sites in/outmarketplace_tick.rsmarketplace_tickcrates/cre8-app-gateway/src/marketplace_tick.rs · 10 call sites in/outserver_domain_renewal.rsserver_domain_renewalcrates/cre8-app-gateway/src/server_domain_renewal.rs · 10 call sites in/outcontinuation.rsadapters::http::continuationcrates/cre8-app-gateway/src/adapters/http/continuation.rs · 8 call sites in/outmod.rsadapters::httpcrates/cre8-app-gateway/src/adapters/http/mod.rs · 8 call sites in/outhttp_util.rshttp_utilcrates/cre8-app-gateway/src/http_util.rs · 8 call sites in/outnormalizer.rsnormalizercrates/cre8-app-gateway/src/normalizer.rs · 8 call sites in/outmgmt.rsconnection::mgmtcrates/cre8-app-gateway/src/connection/mgmt.rs · 7 call sites in/outcontinuation.rscontinuationcrates/cre8-app-gateway/src/continuation.rs · 7 call sites in/outembedded_assets.rsembedded_assetscrates/cre8-app-gateway/src/embedded_assets.rs · 7 call sites in/outinit.rsinitcrates/cre8-app-gateway/src/init.rs · 6 call sites in/outserver_prediction_collector…server_prediction_collectorcrates/cre8-app-gateway/src/server_prediction_collector.rs · 6 call sites in/outmcp.rsadapters::http::mcpcrates/cre8-app-gateway/src/adapters/http/mcp.rs · 5 call sites in/outcompute_bridge_registry.rscompute_bridge_registrycrates/cre8-app-gateway/src/compute_bridge_registry.rs · 5 call sites in/outmcp_handler_registry.rsmcp_handler_registrycrates/cre8-app-gateway/src/mcp_handler_registry.rs · 5 call sites in/outrequest_identity.rsrequest_identitycrates/cre8-app-gateway/src/request_identity.rs · 5 call sites in/outserver_http_prequeue.rsserver_http_prequeuecrates/cre8-app-gateway/src/server_http_prequeue.rs · 5 call sites in/outserver_startup.rsserver_startupcrates/cre8-app-gateway/src/server_startup.rs · 5 call sites in/outsubdomain_routes.rssubdomain_routescrates/cre8-app-gateway/src/subdomain_routes.rs · 5 call sites in/out

Heaviest functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
GatewaySnapshot::from_contextsrc/types.rs:275method93163314.7
normalize_envelopesrc/server_response.rs:374fn153269.4
normalize_response_envelopesrc/server_response.rs:360fn311419.4
with_corssrc/server_response.rs:45fn412629.2
error_responsesrc/util.rs:119fn611509.1
parse_urlencoded_pairssrc/server_http_helpers.rs:261fn194326.9
request_pathsrc/view_routes.rs:81fn311606.7
parse_query_payloadsrc/server_http_helpers.rs:252fn613216.5
request_pathsrc/site_routes.rs:27fn311706.2
add_cors_headerssrc/server_response.rs:24fn62215.8
record_response_egresssrc/server_response.rs:35fn91225.8
install_test_runtime_providerssrc/server_http_test_support.rs:102fn434673145.5
cors_headerssrc/server_response.rs:8fn151105.4
hex_nibblesrc/server_http_helpers.rs:125fn84205.3
GatewayRuntimeContextBuilder::newsrc/context.rs:150method1813305.2
resolve_auth_gate_mode_from_seedsrc/auth.rs:21fn91634.5
percent_decode_form_componentsrc/server_http_helpers.rs:165fn31214.4
percent_decode_componentsrc/server_http_helpers.rs:134fn307114.2
build_protocol_runtimesrc/protocol_mgmt.rs:88fn911674.2
persist_network_truthsrc/peer.rs:115fn504334.1
parse_u64_envsrc/server_runtime.rs:169fn713414
first_successful_fallbacksrc/server_startup.rs:4fn141703.9
inferred_action_from_connectionsrc/router.rs:15fn194513.9
request_querysrc/site_routes.rs:31fn31203.8
inferred_special_actionsrc/router.rs:35fn73123.8
spawn_loggedsrc/util.rs:164fn1913733.8
is_compute_market_connectionsrc/market_safety.rs:64fn51803.7
rejected_peer_envelope_responsesrc/peer.rs:253fn241713.7
send_ws_textsrc/server_ws.rs:256fn52603.7
run_recovering_background_ticksrc/server_runtime.rs:185fn1923213.6
panic_payload_messagesrc/server_runtime.rs:205fn93103.6
with_original_querysrc/site_routes.rs:35fn63613.5
collect_runtime_routessrc/server_runtime.rs:2232fn611623.5
parse_query_valuesrc/server_http_helpers.rs:208fn123133.4
response_egress_bytessrc/server_response.rs:31fn32203.4
handlersrc/mcp_handler_registry.rs:42nested fn51903.3
find_http_route_by_method_namesrc/server_http_helpers.rs:712fn2431033.3
with_cors_for_requestsrc/server_response.rs:53fn411723.2
public_site_route_targetsrc/site_routes.rs:897fn248953.2
bridgesrc/compute_bridge_registry.rs:36fn31503.1

Outside the workspace

anyhow base64 chrono cre8-vm flate2 hyperdb serde serde_json sha2 tiny_http tracing tungstenite