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-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 12 · 28,851 lines (23,741 code) · 73 files · 1,589 fns (455 tests) · cyclomatic Σ 3,217

37workspace deps
15direct dependents
90transitive dependents
532calls out
136calls in
1473call-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-app-intelligence (normal).

normal dep · 11 callsnormal dep · 21 callsnormal dep · 7 callsnormal dep · 4 callsnormal dep · 2 callsnormal dep · 41 callsnormal dep · 6 callsnormal dep · 1 callsnormal dep · 4 callsnormal dep · 0 calls · never namednormal dep · 6 callsnormal dep · 8 callsnormal dep · 1 callsnormal dep · 37 callsnormal dep · 9 callsnormal dep · 1 callsnormal dep · 2 callsnormal dep · 2 callsnormal dep · 0 callsnormal dep · 24 callsnormal dep · 0 callsnormal dep · 17 callsnormal dep · 5 callsnormal dep · 4 callsnormal dep · 39 callsnormal dep · 5 callsnormal dep · 35 callsnormal dep · 7 callsnormal dep · 16 callsnormal dep · 1 callsnormal dep · 121 callsnormal dep · 22 callsnormal dep · 51 callsnormal dep · 0 callsnormal dep · 59 callsnormal dep · 0 callsnormal dep · 0 callsnormal dep · 9 callsnormal dep · 1 callsnormal dep · 17 callsnormal dep · 3 callsnormal dep · 1 callsnormal dep · 1 callsdev dep · 17 callsnormal dep · 14 callsnormal dep · 15 callsnormal dep · 0 callsnormal dep · 5 callsnormal dep · 3 callsnormal dep · 1 callsnormal dep · 0 callsnormal dep · 4 callsnormal dep · 6 callsdev dep · 0 calls · never namedapp-gatewayL12 · 23,741 linescre8-app-gatewayapp-audioL14 · 58,409 linescre8-app-audioapp-capitalstrategyL18 · 87,096 linescre8-app-capitalstrategyapp-cliL13 · 3,200 linescre8-app-cliapp-code_changeL21 · 2,183 linescre8-app-code_changeapp-computeL13 · 93,890 linescre8-app-computeapp-conduitL13 · 77,424 linescre8-app-conduitapp-compute-coreL5 · 6,617 linescre8-app-compute-coreapp-coreL8 · 510 linescre8-app-coreapp-gateway-apiL6 · 500 linescre8-app-gateway-apiapp-intelligenceL11 · 6,159 linescre8-app-intelligenceapp-interpretL10 · 13,240 linescre8-app-interpretapp-manifoldL9 · 18,864 linescre8-app-manifoldapp-messaging-apiL6 · 131 linescre8-app-messaging-apiapp-networkL10 · 15,733 linescre8-app-networkapp-network-clientL4 · 3,590 linescre8-app-network-clientapp-network-federation-st…L6 · 956 linescre8-app-network-federation-storeapp-network-modelL4 · 2,200 linescre8-app-network-modelapp-passport-modelL4 · 2,418 linescre8-app-passport-modelapp-peerL10 · 6,264 linescre8-app-peerapp-protocolL8 · 25,151 linescre8-app-protocolapp-shop-apiL6 · 77 linescre8-app-shop-apiapp-truthL6 · 20,464 linescre8-app-truthapp-viewL9 · 5,933 linescre8-app-viewapp-view-clientL0 · 263,657 linescre8-app-view-clientapp-view-libL7 · 86,830 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-typesL5 · 2,860 linescre8-runtime-app-typesruntime-connection-catalo…L1 · 446 linescre8-runtime-connection-catalog-apiruntime-contractsL0 · 6,077 linescre8-runtime-contractsruntime-coreL2 · 747 linescre8-runtime-coreruntime-dispatch-apiL6 · 496 linescre8-runtime-dispatch-apiruntime-hostL1 · 1,649 linescre8-runtime-hostruntime-surface-apiL6 · 66 linescre8-runtime-surface-apiruntime-view-apiL6 · 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-authL6 · 637 linescre8-util-raw-route-authutil-vm-valueL0 · 446 linescre8-util-vm-valuetest-helpersL28 · 557 linescre8-test-helpersapp-marketL19 · 15,809 linescre8-app-marketapp-mcpL15 · 3,647 linescre8-app-mcpapp-realmL26 · 7,526 linescre8-app-realmapp-tunnelL13 · 2,369 linescre8-app-tunnelapp-virtualL25 · 24,277 linescre8-app-virtualapp-virtual_bridgeL15 · 11,208 linescre8-app-virtual_bridgeruntime-app-catalogL27 · 676 linescre8-runtime-app-catalogruntime-browserL30 · 445 linescre8-runtime-browserruntime-catalogL28 · 1,314 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 fnscrates/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 fnscrates/cre8-app-gateway/src/boot.rs · 243 lines · 18 fnsboot.rscrates/cre8-app-gateway/src/chain.rs · 180 lines · 12 fnschain.rscrates/cre8-app-gateway/src/compute_bridge_registry.rs · 55 lines · 6 fnscrates/cre8-app-gateway/src/connection.rs · 202 lines · 15 fnsconnecti…crates/cre8-app-gateway/src/connection_mgmt.rs · 273 lines · 11 fnsconnectio…crates/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/gateway_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 · 122 lines · 0 fnscrates/cre8-app-gateway/src/lift.rs · 367 lines · 20 fnslift.rscrates/cre8-app-gateway/src/market_safety.rs · 567 lines · 33 fnsmarket_safety.…crates/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 · 758 lines · 53 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 fnsprotocol…crates/cre8-app-gateway/src/request_identity.rs · 161 lines · 16 fnsreques…crates/cre8-app-gateway/src/route_broadcast.rs · 230 lines · 14 fnsroute_bro…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 · 464 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_helpers.rscrates/cre8-app-gateway/src/server_http_matched.rs · 325 lines · 17 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_h…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_te…crates/cre8-app-gateway/src/server_http_workers.rs · 232 lines · 21 fnsserver_ht…crates/cre8-app-gateway/src/server_prediction_collector.rs · 40 lines · 3 fnscrates/cre8-app-gateway/src/server_response.rs · 720 lines · 70 fnsserver_response.rscrates/cre8-app-gateway/src/server_runtime.rs · 1,822 lines · 111 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_routes.rs · 1,458 lines · 110 fnssite_routes.rscrates/cre8-app-gateway/src/static_serve.rs · 131 lines · 13 fnscrates/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_…crates/cre8-app-gateway/src/util.rs · 179 lines · 11 fnsutil.rscrates/cre8-app-gateway/src/view_routes.rs · 3,010 lines · 181 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 64 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 calls4 calls1 calls5 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 calls67 calls1 calls1 calls2 calls6 calls1 calls1 calls1 calls4 calls4 calls1 calls1 calls2 calls1 calls12 calls8 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 calls29 calls2 calls2 calls2 calls1 calls2 calls2 calls10 calls8 calls2 calls1 calls1 calls2 calls2 calls29 calls3 calls2 calls1 calls2 calls3 calls21 calls3 calls2 calls10 calls39 calls1 calls1 calls14 callsserver_runtime.rsserver_runtimecrates/cre8-app-gateway/src/server_runtime.rs · 162 call sites in/outcontext.rscontextcrates/cre8-app-gateway/src/context.rs · 137 call sites in/outserver.rsservercrates/cre8-app-gateway/src/server.rs · 107 call sites in/outserver_response.rsserver_responsecrates/cre8-app-gateway/src/server_response.rs · 102 call sites in/outview_routes.rsview_routescrates/cre8-app-gateway/src/view_routes.rs · 83 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 · 52 call sites in/outtypes.rstypescrates/cre8-app-gateway/src/types.rs · 47 call sites in/outsite_routes.rssite_routescrates/cre8-app-gateway/src/site_routes.rs · 44 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 · 34 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/outpipeline.rspipelinecrates/cre8-app-gateway/src/pipeline.rs · 30 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 · 19 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/outconnection_mgmt.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,589 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
GatewaySnapshot::from_contextsrc/types.rs:284method93156314.2
with_corssrc/server_response.rs:45fn412629.2
error_responsesrc/util.rs:119fn611509.1
normalize_response_envelopesrc/server_response.rs:360fn1321369
parse_urlencoded_pairssrc/server_http_helpers.rs:261fn194327
request_pathsrc/view_routes.rs:81fn311606.8
parse_query_payloadsrc/server_http_helpers.rs:252fn613216.5
request_pathsrc/site_routes.rs:27fn311706.2
add_cors_headerssrc/server_response.rs:24fn62215.7
record_response_egresssrc/server_response.rs:35fn91225.7
install_test_runtime_providerssrc/server_http_test_support.rs:102fn434673145.5
cors_headerssrc/server_response.rs:8fn151105.3
hex_nibblesrc/server_http_helpers.rs:125fn84205.3
GatewayRuntimeContextBuilder::newsrc/context.rs:150method1813305.1
percent_decode_form_componentsrc/server_http_helpers.rs:165fn31214.4
resolve_auth_gate_mode_from_seedsrc/auth.rs:21fn91634.4
percent_decode_componentsrc/server_http_helpers.rs:134fn307114.3
build_protocol_runtimesrc/protocol_mgmt.rs:98fn911674.2
persist_network_truthsrc/peer.rs:115fn504334.1
first_successful_fallbacksrc/server_startup.rs:4fn141703.9
inferred_action_from_connectionsrc/router.rs:15fn194513.9
parse_u64_envsrc/server_runtime.rs:161fn713213.8
request_querysrc/site_routes.rs:31fn31203.8
inferred_special_actionsrc/router.rs:35fn73123.8
is_compute_market_connectionsrc/market_safety.rs:64fn51803.8
rejected_peer_envelope_responsesrc/peer.rs:253fn241713.8
send_ws_textsrc/server_ws.rs:256fn52603.7
spawn_loggedsrc/util.rs:164fn1913533.7
with_original_querysrc/site_routes.rs:35fn63613.5
collect_runtime_routessrc/server_runtime.rs:2048fn611623.5
parse_query_valuesrc/server_http_helpers.rs:208fn123133.5
run_recovering_background_ticksrc/server_runtime.rs:177fn1923013.4
panic_payload_messagesrc/server_runtime.rs:197fn93103.4
response_egress_bytessrc/server_response.rs:31fn32203.3
handlersrc/mcp_handler_registry.rs:42nested fn51903.3
find_http_route_by_method_namesrc/server_http_helpers.rs:712fn2431033.3
public_site_route_targetsrc/site_routes.rs:897fn248953.2
bridgesrc/compute_bridge_registry.rs:36fn31503.1
build_routes_metasrc/routes_meta.rs:26fn95810123.1
parse_positive_usizesrc/server_ws.rs:61fn31203.1

Outside the workspace

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