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`.
Neighbourhood
Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.
Files
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.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| Preview::newsrc/lib.rs:112 | method | 3 | 1 | 5 | 0 | 1.5 | |
| Preview::with_argssrc/lib.rs:137 | method | 24 | 6 | 3 | 0 | 1.3 | |
| Preview::routesrc/lib.rs:213 | method | 17 | 6 | 4 | 8 | 1.2 | |
| path_ofsrc/http.rs:89 | fn | 3 | 1 | 2 | 0 | 1 | |
| tree_pagesrc/lib.rs:72 | fn | 14 | 1 | 1 | 1 | 0.9 | |
| spec_renderersrc/lib.rs:98 | fn | 3 | 1 | 1 | 1 | 0.9 | |
| Response::csssrc/http.rs:28 | method | 3 | 1 | 2 | 0 | 0.8 | |
| Response::not_foundsrc/http.rs:40 | method | 7 | 1 | 2 | 0 | 0.8 | |
| Preview::load_fixturesrc/lib.rs:162 | method | 15 | 2 | 2 | 0 | 0.7 | |
| Response::javascriptsrc/http.rs:32 | method | 3 | 1 | 1 | 0 | 0.6 | |
| Response::jsonsrc/http.rs:36 | method | 3 | 1 | 1 | 0 | 0.6 | |
| Preview::render_pagesrc/lib.rs:233 | method | 17 | 2 | 1 | 5 | 0.6 | |
| read_request_targetsrc/http.rs:55 | fn | 19 | 4 | 1 | 0 | 0.6 | |
| write_responsesrc/http.rs:75 | fn | 11 | 1 | 1 | 1 | 0.6 | |
| Response::htmlsrc/http.rs:24 | method | 3 | 1 | 1 | 0 | 0.6 | |
| Response::errorsrc/http.rs:48 | method | 3 | 1 | 1 | 0 | 0.6 | |
| panic_messagesrc/lib.rs:252 | fn | 9 | 3 | 1 | 0 | 0.6 | |
| html_textsrc/lib.rs:264 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| path_drops_the_query_stringsrc/http.rs:98 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| responses_carry_their_content_typessrc/http.rs:104 | fn | 5 | 1 | 0 | 2 | 0.5 | |
| layout_wrapsrc/lib.rs:89 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| Preview::portsrc/lib.rs:116 | method | 4 | 1 | 0 | 0 | 0.5 | |
| Preview::fixturesrc/lib.rs:125 | method | 4 | 1 | 0 | 0 | 0.5 | |
| Preview::from_argssrc/lib.rs:133 | method | 3 | 1 | 0 | 1 | 0.5 | |
| Preview::servesrc/lib.rs:180 | method | 32 | 7 | 0 | 4 | 0.5 | |
| args_overlay_defaults_and_ignore_unknown_flagssrc/lib.rs:274 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| a_trailing_flag_without_a_value_does_not_panicsrc/lib.rs:283 | fn | 4 | 1 | 0 | 2 | 0.5 | |
| theme_and_shared_scripts_are_served_from_view_lib_constssrc/lib.rs:289 | fn | 13 | 1 | 0 | 3 | 0.5 | |
| root_renders_the_page_and_unknown_paths_are_404src/lib.rs:304 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| a_panicking_render_becomes_a_500_page_not_a_dead_serversrc/lib.rs:312 | fn | 10 | 1 | 0 | 2 | 0.5 | |
| demo_contextsrc/lib.rs:323 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| spec_renderer_goes_through_the_real_document_pipelinesrc/lib.rs:335 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| tree_page_produces_a_full_styled_documentsrc/lib.rs:341 | fn | 13 | 1 | 0 | 1 | 0.5 |
Outside the workspace
serde_json