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-view-preview crates cargo crate

Standalone preview server for one SSR template. Serves a page rendered through the real cre8-app-view-lib pipeline — plus the base theme and shared scripts the shell links — over localhost, so the edit-look loop on a view template does not require booting the gateway. A library an app crate calls from `cargo run --example preview`.

crates/cre8-view-preview · level 8 · 463 lines (327 code) · 2 files · 33 fns (10 tests) · cyclomatic Σ 56

2workspace deps
2direct dependents
73transitive dependents
6calls out
0calls in
22.1call-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.

Files

lowhigh

File call graph

Resolved calls between this crate's files, callers left of callees.

Heaviest functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
Preview::newsrc/lib.rs:112method31501.5
Preview::with_argssrc/lib.rs:137method246301.3
Preview::routesrc/lib.rs:213method176481.2
path_ofsrc/http.rs:89fn31201
tree_pagesrc/lib.rs:72fn141110.9
spec_renderersrc/lib.rs:98fn31110.9
Response::csssrc/http.rs:28method31200.8
Response::not_foundsrc/http.rs:40method71200.8
Preview::load_fixturesrc/lib.rs:162method152200.7
Response::javascriptsrc/http.rs:32method31100.6
Response::jsonsrc/http.rs:36method31100.6
Preview::render_pagesrc/lib.rs:233method172150.6
read_request_targetsrc/http.rs:55fn194100.6
write_responsesrc/http.rs:75fn111110.6
Response::htmlsrc/http.rs:24method31100.6
Response::errorsrc/http.rs:48method31100.6
panic_messagesrc/lib.rs:252fn93100.6
html_textsrc/lib.rs:264fn31100.6
path_drops_the_query_stringsrc/http.rs:98fn41010.5
responses_carry_their_content_typessrc/http.rs:104fn51020.5
layout_wrapsrc/lib.rs:89fn31000.5
Preview::portsrc/lib.rs:116method41000.5
Preview::fixturesrc/lib.rs:125method41000.5
Preview::from_argssrc/lib.rs:133method31010.5
Preview::servesrc/lib.rs:180method327040.5
args_overlay_defaults_and_ignore_unknown_flagssrc/lib.rs:274fn71020.5
a_trailing_flag_without_a_value_does_not_panicsrc/lib.rs:283fn41020.5
theme_and_shared_scripts_are_served_from_view_lib_constssrc/lib.rs:289fn131030.5
root_renders_the_page_and_unknown_paths_are_404src/lib.rs:304fn61020.5
a_panicking_render_becomes_a_500_page_not_a_dead_serversrc/lib.rs:312fn101020.5
demo_contextsrc/lib.rs:323fn31000.5
spec_renderer_goes_through_the_real_document_pipelinesrc/lib.rs:335fn41010.5
tree_page_produces_a_full_styled_documentsrc/lib.rs:341fn131010.5

Outside the workspace

serde_json