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-view-lib-api view cargo crate
ViewNode grammar and view contracts (builders, patch / state / lifecycle / transport / wire, portable IR, SSR feed, workbench + live-status + comments recipes) — the half of cre8-app-view-lib that builds and describes a view tree without rendering it. Tree-only app crates depend on this leaf; every renderer stays in cre8-app-view-lib.
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). 1,331 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| ViewNode::prop_strsrc/view_node/mod.rs:148 | method | 3 | 1 | 274 | 0 | 97.2 | |
| ViewNode::with_propsrc/view_node/mod.rs:93 | method | 4 | 1 | 341 | 0 | 87.8 | |
| ViewNode::newsrc/view_node/mod.rs:82 | method | 10 | 1 | 137 | 0 | 33.3 | |
| ViewNode::with_childsrc/view_node/mod.rs:123 | method | 4 | 1 | 161 | 0 | 27.9 | |
| ViewNode::from_jsonsrc/view_node/mod.rs:141 | method | 6 | 1 | 45 | 2 | 22.2 | |
| ViewStateEvent::togglesrc/view_state.rs:127 | method | 3 | 1 | 25 | 0 | 15.6 | |
| ViewChild::as_textsrc/view_node/mod.rs:71 | method | 8 | 4 | 12 | 0 | 12.9 | |
| behavior_contracts_are_consistentsrc/view_node/mod.rs:157 | fn | 3 | 2 | 1 | 2 | 9.9 | |
| declared_child_nodes_are_validsrc/view_node/mod.rs:191 | fn | 12 | 3 | 1 | 1 | 9.9 | |
| FormBuilder::success_redirect_fieldssrc/view_node/forms.rs:332 | method | 11 | 1 | 23 | 0 | 8.8 | |
| FieldDescriptor::ofsrc/view_node/forms.rs:108 | method | 18 | 1 | 8 | 0 | 8.3 | |
| view_lifecycle_from_valuesrc/view_lifecycle.rs:152 | fn | 7 | 2 | 4 | 0 | 7 | |
| view_state_from_valuesrc/view_state.rs:144 | fn | 7 | 2 | 4 | 0 | 6.6 | |
| LiveStatusPanel::class_namesrc/live_status.rs:63 | method | 4 | 1 | 7 | 0 | 6.3 | |
| LiveStatusPanel::live_kindsrc/live_status.rs:69 | method | 4 | 1 | 7 | 0 | 6.3 | |
| ViewPatch::newsrc/view_patch.rs:155 | method | 16 | 1 | 14 | 0 | 6.3 | |
| portable_tree_matches_jsonsrc/portable_ir.rs:195 | fn | 19 | 7 | 2 | 1 | 6.2 | |
| value_atsrc/ssr.rs:231 | fn | 7 | 2 | 8 | 0 | 6.1 | |
| PortableViewIr::matches_treesrc/portable_ir.rs:169 | method | 3 | 1 | 6 | 1 | 5.9 | |
| safe_json_numbers_equalsrc/portable_ir.rs:215 | fn | 11 | 7 | 1 | 1 | 5.8 | |
| safe_integersrc/portable_ir.rs:227 | fn | 7 | 2 | 1 | 0 | 5.4 | |
| workbench_live_status_htmlsrc/workbench.rs:306 | fn | 33 | 3 | 3 | 0 | 5 | |
| LiveStatusPanel::snapshotsrc/live_status.rs:104 | method | 3 | 1 | 6 | 1 | 4.9 | |
| ViewPatchFrame::newsrc/view_patch.rs:33 | method | 3 | 1 | 16 | 0 | 4.8 | |
| ViewNode::prop_arraysrc/view_node/mod.rs:152 | method | 3 | 1 | 15 | 0 | 4.8 | |
| state_contract_is_consistentsrc/view_node/mod.rs:161 | fn | 12 | 2 | 1 | 1 | 4.7 | |
| lifecycle_contract_is_consistentsrc/view_node/mod.rs:174 | fn | 12 | 2 | 1 | 1 | 4.7 | |
| ViewOutputRequest::require_treesrc/view_output.rs:98 | method | 13 | 3 | 4 | 2 | 4.3 | |
| PortableViewIr::validatesrc/portable_ir.rs:91 | method | 57 | 19 | 14 | 5 | 4.1 | |
| render_template_tosrc/renderer.rs:74 | fn | 10 | 2 | 3 | 2 | 3.9 | |
| empty_objectsrc/view_state.rs:294 | fn | 3 | 1 | 3 | 0 | 3.6 | |
| TableBuilder::newsrc/view_node/display.rs:170 | method | 3 | 1 | 18 | 0 | 3.5 | |
| render_templatesrc/renderer.rs:310 | fn | 6 | 1 | 7 | 1 | 3.4 | |
| ViewOutputResolution::resolvesrc/view_output.rs:182 | method | 59 | 11 | 9 | 5 | 3.4 | |
| SsrFeed::newsrc/ssr.rs:79 | method | 3 | 1 | 2 | 0 | 3.4 | |
| StatBuilder::newsrc/view_node/display.rs:538 | method | 3 | 1 | 8 | 0 | 3.3 | |
| BannerBuilder::defaultsrc/view_node/display.rs:1417 | trait impl | 3 | 1 | 1 | 0 | 3 | |
| BannerBuilder::newsrc/view_node/display.rs:1423 | method | 3 | 1 | 4 | 1 | 3 | |
| FieldDescriptor::selectsrc/view_node/forms.rs:156 | method | 5 | 1 | 16 | 1 | 3 | |
| ViewNode::with_childrensrc/view_node/mod.rs:128 | method | 8 | 1 | 17 | 0 | 3 |
Outside the workspace
anyhow serde serde_json