1 viewer
rust 1,859,989 · typescript 235,537 · javascript 132,952 · python 20,426 · 6,407 files · digest 4f42637fac12 · built in 1.2 s · crystals off
crates/cre8-app-site/src/app.rs
Items
struct SiteApp static EXTRAS static ROUTE_HANDLERS static ROUTES const APP_SPEC static META static VIEW_DEFINITIONS static VIEW_STRUCTURE impl RuntimeApp for SiteApp static PRESENTATION const SUBSCRIBE_PATH const CRAWLER_TRAPS const SITE_SITEMAP_FILE const SITE_ROBOTS_FILE
Functions
By call-graph weight (PageRank; 1.0 is the average function). 68 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| safe_redirect_targetsrc/app.rs:1394 | fn | 7 | 4 | 2 | 0 | 1.9 | |
| search_typessrc/app.rs:11 | fn | 12 | 1 | 3 | 2 | 1.9 | |
| requestsrc/app.rs:1962 | fn | 11 | 1 | 7 | 0 | 1.8 | |
| headerssrc/app.rs:1813 | fn | 3 | 1 | 2 | 0 | 1.6 | |
| raw_site_responsesrc/app.rs:1258 | fn | 58 | 15 | 7 | 14 | 1.4 | |
| request_host_namesrc/app.rs:1640 | fn | 7 | 5 | 1 | 0 | 1.3 | |
| contextsrc/app.rs:1958 | fn | 3 | 1 | 5 | 1 | 1.2 | |
| site_redirect_forsrc/app.rs:1366 | fn | 22 | 8 | 3 | 1 | 1.2 | |
| same_origin_referersrc/app.rs:1206 | fn | 17 | 4 | 3 | 0 | 1.2 | |
| is_crawlable_routesrc/app.rs:1534 | fn | 15 | 7 | 2 | 1 | 1 | |
| rawsrc/app.rs:1817 | fn | 11 | 1 | 4 | 1 | 1 | |
| served_site_host_labelsrc/app.rs:1670 | fn | 17 | 2 | 4 | 1 | 1 | |
| raw_get_responsesrc/app.rs:1224 | fn | 5 | 1 | 3 | 3 | 0.9 | |
| generate_sitemap_xmlsrc/app.rs:1514 | fn | 15 | 3 | 1 | 11 | 0.8 | |
| generate_robots_txtsrc/app.rs:1605 | fn | 23 | 1 | 1 | 9 | 0.8 | |
| seedsrc/app.rs:1856 | fn | 19 | 2 | 3 | 2 | 0.8 | |
| request_site_originsrc/app.rs:1649 | fn | 17 | 9 | 3 | 1 | 0.8 | |
| site_render_hostsrc/app.rs:1696 | fn | 20 | 2 | 2 | 3 | 0.8 | |
| site_public_pathsrc/app.rs:1689 | fn | 4 | 3 | 2 | 0 | 0.7 | |
| raw_landing_responsesrc/app.rs:1235 | fn | 12 | 2 | 1 | 1 | 0.7 | |
| raw_static_responsesrc/app.rs:1248 | fn | 9 | 3 | 1 | 2 | 0.7 | |
| is_reserved_site_routesrc/app.rs:1325 | fn | 3 | 1 | 2 | 0 | 0.7 | |
| disallow_crawler_trapssrc/app.rs:1601 | fn | 3 | 1 | 2 | 1 | 0.6 | |
| safe_site_path_segmentsrc/app.rs:1317 | fn | 3 | 2 | 1 | 0 | 0.6 | |
| serve_realm_splashsrc/app.rs:1329 | fn | 9 | 1 | 1 | 1 | 0.6 | |
| serve_site_pagesrc/app.rs:1339 | fn | 18 | 3 | 1 | 3 | 0.6 | |
| serve_site_page_scopedsrc/app.rs:1417 | fn | 45 | 7 | 1 | 10 | 0.6 | |
| serve_site_bundlesrc/app.rs:1463 | fn | 21 | 2 | 1 | 3 | 0.6 | |
| serve_site_indexsrc/app.rs:1485 | fn | 13 | 1 | 1 | 2 | 0.6 | |
| serve_site_view_patchsrc/app.rs:1499 | fn | 9 | 1 | 1 | 1 | 0.6 | |
| serve_site_sitemapsrc/app.rs:1729 | fn | 47 | 8 | 1 | 15 | 0.6 | |
| serve_site_robotssrc/app.rs:1779 | fn | 29 | 5 | 1 | 12 | 0.6 | |
| request_from_hostsrc/app.rs:1996 | fn | 5 | 1 | 1 | 1 | 0.6 | |
| seed_pagesrc/app.rs:2002 | fn | 20 | 1 | 1 | 1 | 0.6 | |
| site_not_foundsrc/app.rs:1717 | fn | 8 | 1 | 2 | 0 | 0.6 | |
| document_route_urlssrc/app.rs:1556 | fn | 23 | 2 | 1 | 5 | 0.6 | |
| redirect_responsesrc/app.rs:1402 | fn | 14 | 1 | 1 | 0 | 0.5 | |
| SiteApp::presentationsrc/app.rs:1037 | trait impl | 11 | 1 | 0 | 0 | 0.5 | |
| SiteApp::view_structuresrc/app.rs:1048 | trait impl | 1 | 1 | 0 | 0 | 0.5 | |
| SiteApp::search_typessrc/app.rs:1049 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| SiteApp::metasrc/app.rs:1052 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| SiteApp::view_definitionssrc/app.rs:1057 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| SiteApp::bootsrc/app.rs:1061 | trait impl | 5 | 1 | 0 | 2 | 0.5 | |
| SiteApp::handlesrc/app.rs:1067 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| SiteApp::connectionssrc/app.rs:1071 | trait impl | 63 | 53 | 0 | 37 | 0.5 | |
| SiteApp::connectsrc/app.rs:1135 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| SiteApp::connection_extrassrc/app.rs:1139 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| SiteApp::route_handler_specssrc/app.rs:1143 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| SiteApp::connection_handlerssrc/app.rs:1148 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| SiteApp::raw_handlesrc/app.rs:1152 | trait impl | 37 | 17 | 0 | 9 | 0.5 | |
| a_site_host_is_recognized_by_its_labelsrc/app.rs:1830 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| render_hosts_use_public_paths_only_on_the_site_hostsrc/app.rs:1841 | fn | 14 | 1 | 0 | 2 | 0.5 | |
| a_site_host_sitemap_lists_only_that_sites_published_pagessrc/app.rs:1877 | fn | 25 | 3 | 0 | 4 | 0.5 | |
| a_trailing_slash_names_the_same_pagesrc/app.rs:1904 | fn | 9 | 1 | 0 | 4 | 0.5 | |
| a_site_redirect_fires_even_when_the_old_slug_has_no_pagesrc/app.rs:1920 | fn | 32 | 1 | 0 | 5 | 0.5 | |
| only_fetchable_routes_reach_the_sitemapsrc/app.rs:1975 | fn | 17 | 2 | 0 | 1 | 0.5 | |
| site_meta_declares_runtime_surfacesrc/app.rs:2024 | fn | 8 | 1 | 0 | 0 | 0.5 | |
| site_exposes_document_viewssrc/app.rs:2034 | fn | 32 | 3 | 0 | 0 | 0.5 | |
| raw_landing_route_serves_self_contained_intro_documentsrc/app.rs:2068 | fn | 23 | 3 | 0 | 2 | 0.5 | |
| raw_realm_splash_serves_seeded_sky_for_valid_labels_onlysrc/app.rs:2093 | fn | 14 | 2 | 0 | 4 | 0.5 | |
| raw_site_response_serves_view_patch_before_page_slug_fallbacksrc/app.rs:2109 | fn | 18 | 1 | 0 | 2 | 0.5 | |
| raw_handle_serves_static_index_page_bundle_and_rejects_unsafe_pathssrc/app.rs:2129 | fn | 63 | 4 | 0 | 5 | 0.5 | |
| declared_site_routes_are_never_swallowed_by_the_page_renderersrc/app.rs:2198 | fn | 46 | 12 | 0 | 3 | 0.5 | |
| newsletter_post_records_a_subscriber_and_redirects_to_a_same_origin_pagesrc/app.rs:2246 | fn | 33 | 1 | 0 | 4 | 0.5 | |
| subscribe_redirect_refuses_offsite_refererssrc/app.rs:2283 | fn | 18 | 2 | 0 | 2 | 0.5 | |
| subscribe_rejects_a_malformed_address_without_storing_itsrc/app.rs:2303 | fn | 10 | 1 | 0 | 3 | 0.5 | |
| site_redirect_lookup_matches_by_from_path_onlysrc/app.rs:2315 | fn | 22 | 1 | 0 | 1 | 0.5 | |
| safe_redirect_target_refuses_protocol_relative_and_scripted_urlssrc/app.rs:2339 | fn | 8 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.