rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
cre8-app-credit credit cargo crate
CreditApp: collateralized loans whose claims trade as cre8/loan/{id} and are paid pro rata to holders, reciprocal credit lines that mint tradeable IOUs (cre8/credit/{issuer}/{asset}), and rep-scaled unsecured credit. Every money write is one all-or-nothing manifold contract committed through commit_inline_exact.
Neighbourhood
Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.
Declared but never named in this crate's source: cre8-app-truth (dev).
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). 280 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| concatsrc/app.rs:26 | fn | 4 | 1 | 7 | 0 | 7.2 | |
| opt_strsrc/module.rs:48 | fn | 3 | 1 | 17 | 0 | 3.2 | |
| LoanTerms::is_securedsrc/loan_model.rs:116 | method | 3 | 2 | 5 | 0 | 2.9 | |
| actionssrc/app.rs:32 | fn | 4 | 1 | 2 | 1 | 2.7 | |
| asset_slugsrc/line_model.rs:25 | fn | 3 | 1 | 1 | 0 | 2.4 | |
| iou_assetsrc/line_model.rs:30 | fn | 3 | 1 | 8 | 1 | 2.3 | |
| integer_unitssrc/exact.rs:150 | fn | 3 | 3 | 2 | 0 | 2.2 | |
| payload_amountsrc/loan_contract.rs:76 | fn | 3 | 1 | 9 | 0 | 2.1 | |
| LineSide::outstandingsrc/line_model.rs:86 | method | 3 | 1 | 10 | 0 | 1.9 | |
| loan_contractsrc/loan_contract.rs:80 | fn | 3 | 1 | 9 | 0 | 1.9 | |
| get_loansrc/loan.rs:77 | fn | 3 | 1 | 7 | 2 | 1.7 | |
| req_strsrc/module.rs:53 | fn | 3 | 1 | 16 | 1 | 1.7 | |
| connectsrc/app.rs:133 | fn | 11 | 2 | 4 | 1 | 1.6 | |
| to_i64src/exact.rs:121 | fn | 3 | 1 | 3 | 0 | 1.6 | |
| loan_claim_assetsrc/loan_model.rs:37 | fn | 3 | 1 | 2 | 0 | 1.6 | |
| loan_vidsrc/loan_model.rs:205 | fn | 3 | 1 | 3 | 1 | 1.5 | |
| Harness::fundsrc/e2e_tests.rs:72 | method | 9 | 1 | 9 | 0 | 1.5 | |
| line_receiptsrc/line.rs:156 | fn | 20 | 1 | 9 | 1 | 1.5 | |
| loan_receiptsrc/loan_contract.rs:207 | fn | 20 | 1 | 10 | 1 | 1.5 | |
| amount_owedsrc/exact.rs:36 | fn | 6 | 1 | 2 | 2 | 1.4 | |
| line_contractsrc/line.rs:76 | fn | 3 | 1 | 5 | 0 | 1.4 | |
| CallerAuthority::from_contextsrc/auth.rs:40 | method | 7 | 2 | 1 | 3 | 1.4 | |
| net_rep_from_balancessrc/holdings.rs:67 | fn | 9 | 3 | 2 | 1 | 1.4 | |
| loan_contractssrc/loan_contract.rs:190 | fn | 13 | 1 | 2 | 9 | 1.4 | |
| load_loansrc/loan_model.rs:217 | fn | 3 | 1 | 3 | 3 | 1.3 | |
| parse_loansrc/loan_model.rs:228 | fn | 3 | 1 | 2 | 0 | 1.3 | |
| interest_ceilsrc/exact.rs:27 | fn | 7 | 4 | 2 | 2 | 1.3 | |
| LoanRecord::repayablesrc/loan_model.rs:192 | method | 3 | 3 | 6 | 1 | 1.3 | |
| optional_unitssrc/exact.rs:138 | fn | 10 | 2 | 4 | 1 | 1.3 | |
| commit_moneysrc/settle.rs:110 | fn | 17 | 5 | 4 | 2 | 1.3 | |
| copy_viewsrc/app.rs:64 | fn | 16 | 4 | 1 | 0 | 1.3 | |
| enginesrc/line.rs:804 | fn | 3 | 1 | 4 | 2 | 1.3 | |
| credit_locksrc/settle.rs:48 | fn | 3 | 1 | 13 | 0 | 1.2 | |
| PendingCommit::newsrc/settle.rs:143 | method | 3 | 1 | 12 | 0 | 1.2 | |
| unsecured_limitsrc/unsecured.rs:76 | fn | 15 | 1 | 3 | 0 | 1.2 | |
| pro_ratasrc/exact.rs:70 | fn | 27 | 7 | 4 | 3 | 1.2 | |
| LoanRecord::claim_assetsrc/loan_model.rs:167 | method | 3 | 1 | 4 | 1 | 1.2 | |
| payload_amountsrc/line.rs:80 | fn | 3 | 1 | 4 | 0 | 1.2 | |
| line_vidsrc/line_model.rs:167 | fn | 3 | 1 | 2 | 1 | 1.1 | |
| holdingssrc/exact.rs:187 | fn | 3 | 1 | 3 | 0 | 1.1 |
Outside the workspace
anyhow hyperdb serde serde_json