rust 1,854,448 · typescript 233,181 · javascript 132,491 · python 19,572 · 6,381 files · digest 17250db9be6a · built in 2.2 s · crystals off
cre8-app-inventory inventory cargo crate
InventoryApp — a multi-location stock ledger: append-only StockMovement (receive/reserve/release/sell/transfer/adjust) folded into a StockBalance per (item, location). location_ref is an opaque key (outlet:/warehouse:/juris:) so a franchise rolls stock up by place. Shop/Manufacture/Transport compose it by connection name. (2026-06-24).
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). 107 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| parsesrc/connection.rs:335 | fn | 3 | 1 | 9 | 0 | 2.5 | |
| requiredsrc/connection.rs:168 | fn | 3 | 1 | 5 | 0 | 2.5 | |
| post_movementsrc/model.rs:252 | fn | 16 | 1 | 11 | 2 | 2.3 | |
| prepare_movementsrc/model.rs:272 | fn | 48 | 6 | 2 | 3 | 1.8 | |
| movement_writessrc/model.rs:321 | fn | 15 | 2 | 2 | 2 | 1.8 | |
| derive_balance_idsrc/model.rs:176 | fn | 3 | 1 | 2 | 1 | 1.7 | |
| load_balancesrc/model.rs:216 | fn | 7 | 1 | 8 | 4 | 1.6 | |
| history_querysrc/view_templates.rs:32 | fn | 3 | 1 | 8 | 1 | 1.5 | |
| item_treesrc/view_templates.rs:135 | fn | 165 | 24 | 8 | 23 | 1.5 | |
| connectsrc/connection.rs:157 | fn | 10 | 1 | 3 | 1 | 1.4 | |
| derive_movement_idsrc/model.rs:71 | fn | 15 | 1 | 1 | 2 | 1.4 | |
| runsrc/init.rs:7 | fn | 3 | 1 | 2 | 0 | 1.3 | |
| parse_balancesrc/model.rs:235 | fn | 10 | 1 | 2 | 2 | 1.3 | |
| authorize_locationssrc/connection.rs:192 | fn | 12 | 1 | 7 | 1 | 1.2 | |
| list_movementssrc/model.rs:147 | fn | 12 | 2 | 6 | 2 | 1.2 | |
| readsrc/view_templates.rs:35 | fn | 8 | 1 | 3 | 3 | 1.1 | |
| list_balancessrc/model.rs:224 | fn | 10 | 2 | 3 | 2 | 1.1 | |
| StockBalance::availablesrc/model.rs:199 | method | 3 | 1 | 6 | 0 | 1.1 | |
| MovementKind::keysrc/model.rs:55 | method | 11 | 7 | 1 | 0 | 1.1 | |
| stock_querysrc/view_templates.rs:29 | fn | 3 | 1 | 4 | 1 | 1 | |
| balances_treesrc/view_templates.rs:56 | fn | 38 | 9 | 4 | 9 | 1 | |
| graphsrc/model.rs:417 | fn | 3 | 1 | 6 | 0 | 1 | |
| receivesrc/model.rs:421 | fn | 3 | 1 | 6 | 1 | 1 | |
| parse_movementsrc/model.rs:160 | fn | 13 | 1 | 1 | 5 | 1 | |
| StockMovement::newsrc/model.rs:107 | method | 26 | 1 | 1 | 1 | 1 | |
| StockBalance::newsrc/model.rs:191 | method | 6 | 1 | 1 | 1 | 1 | |
| contextsrc/connection.rs:373 | fn | 8 | 1 | 3 | 3 | 1 | |
| positive_qtysrc/connection.rs:172 | fn | 7 | 2 | 5 | 1 | 0.9 | |
| item_locsrc/connection.rs:180 | fn | 3 | 1 | 5 | 1 | 0.9 | |
| balance_jsonsrc/connection.rs:184 | fn | 7 | 1 | 5 | 0 | 0.9 | |
| post_transfersrc/model.rs:339 | fn | 33 | 3 | 4 | 2 | 0.8 | |
| receive_formsrc/view_templates.rs:94 | fn | 15 | 1 | 2 | 2 | 0.8 | |
| recordssrc/view_templates.rs:43 | fn | 7 | 3 | 3 | 0 | 0.8 | |
| balance_cardsrc/view_templates.rs:109 | fn | 15 | 3 | 3 | 4 | 0.8 | |
| receive_handlersrc/connection.rs:207 | fn | 12 | 1 | 1 | 7 | 0.7 | |
| reserve_handlersrc/connection.rs:220 | fn | 15 | 1 | 1 | 7 | 0.7 | |
| release_handlersrc/connection.rs:236 | fn | 12 | 1 | 1 | 7 | 0.7 | |
| sell_handlersrc/connection.rs:249 | fn | 15 | 1 | 1 | 8 | 0.7 | |
| transfer_handlersrc/connection.rs:265 | fn | 19 | 2 | 1 | 6 | 0.7 | |
| adjust_handlersrc/connection.rs:285 | fn | 14 | 2 | 1 | 7 | 0.7 |
Outside the workspace
anyhow hyperdb serde serde_json