1 viewer
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-referral referral cargo crate
ReferralApp: partner share links (/r/{code}), sale attribution and a commission ledger with refund holds and recorded payouts.
7workspace deps
2direct dependents
14transitive dependents
60calls out
3calls in
74.2call-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). 95 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| connectsrc/connection.rs:116 | fn | 8 | 1 | 8 | 1 | 3.8 | |
| putsrc/model.rs:222 | fn | 3 | 1 | 4 | 2 | 2.7 | |
| with_actionsrc/connection.rs:127 | fn | 7 | 2 | 5 | 1 | 2.6 | |
| parsesrc/model.rs:218 | fn | 3 | 1 | 7 | 0 | 2.2 | |
| normalize_codesrc/model.rs:33 | fn | 9 | 3 | 7 | 0 | 1.8 | |
| bodysrc/view.rs:163 | fn | 33 | 5 | 3 | 11 | 1.5 | |
| try_attributesrc/attribution.rs:52 | fn | 71 | 15 | 1 | 10 | 1.4 | |
| safe_landing_pathsrc/model.rs:55 | fn | 6 | 6 | 4 | 0 | 1.4 | |
| principalsrc/connection.rs:93 | fn | 12 | 1 | 6 | 1 | 1.3 | |
| tablesrc/view.rs:81 | fn | 3 | 1 | 2 | 0 | 1.3 | |
| as_callersrc/tests.rs:32 | fn | 13 | 1 | 6 | 2 | 1.2 | |
| derive_binding_idsrc/model.rs:142 | fn | 3 | 1 | 2 | 1 | 1.1 | |
| attribute_paid_salesrc/attribution.rs:45 | fn | 6 | 2 | 7 | 1 | 1.1 | |
| ReferralCommission::payablesrc/model.rs:188 | method | 3 | 3 | 2 | 0 | 1.1 | |
| commission_minorsrc/model.rs:45 | fn | 6 | 3 | 2 | 0 | 1 | |
| list_partnerssrc/model.rs:236 | fn | 5 | 1 | 3 | 2 | 1 | |
| list_commissionssrc/model.rs:255 | fn | 5 | 1 | 4 | 2 | 1 | |
| followsrc/link.rs:32 | fn | 32 | 2 | 2 | 9 | 0.9 | |
| install_graphsrc/tests.rs:19 | fn | 12 | 1 | 7 | 3 | 0.9 | |
| add_partnersrc/tests.rs:59 | fn | 8 | 2 | 7 | 2 | 0.9 | |
| load_partner_by_codesrc/model.rs:229 | fn | 4 | 1 | 5 | 5 | 0.9 | |
| visible_partnerssrc/connection.rs:235 | fn | 17 | 1 | 2 | 6 | 0.9 | |
| visible_commissionssrc/connection.rs:261 | fn | 24 | 4 | 2 | 3 | 0.9 | |
| salesrc/tests.rs:46 | fn | 12 | 1 | 6 | 0 | 0.8 | |
| moneysrc/view.rs:45 | fn | 3 | 2 | 2 | 0 | 0.8 | |
| headersrc/link.rs:81 | fn | 3 | 1 | 2 | 0 | 0.8 | |
| ReferralPartner::is_activesrc/model.rs:103 | method | 3 | 1 | 3 | 0 | 0.8 | |
| derive_commission_idsrc/model.rs:193 | fn | 3 | 1 | 4 | 1 | 0.8 | |
| upsert_commissionsrc/model.rs:249 | fn | 3 | 1 | 4 | 1 | 0.8 | |
| load_commissionsrc/model.rs:252 | fn | 3 | 1 | 4 | 3 | 0.8 | |
| redirectsrc/link.rs:65 | fn | 11 | 2 | 2 | 0 | 0.8 | |
| try_servesrc/link.rs:23 | fn | 8 | 3 | 2 | 2 | 0.8 | |
| partner_rowssrc/view.rs:60 | fn | 20 | 1 | 1 | 0 | 0.8 | |
| bind_accountsrc/connection.rs:335 | fn | 15 | 3 | 2 | 6 | 0.7 | |
| try_servesrc/view.rs:18 | fn | 25 | 5 | 1 | 4 | 0.7 | |
| percentsrc/view.rs:49 | fn | 3 | 2 | 1 | 0 | 0.7 | |
| derive_partner_idsrc/model.rs:111 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| reverse_salesrc/attribution.rs:127 | fn | 21 | 3 | 2 | 5 | 0.6 | |
| list_payoutssrc/model.rs:264 | fn | 5 | 1 | 1 | 2 | 0.6 | |
| upsert_partnersrc/model.rs:226 | fn | 3 | 1 | 2 | 1 | 0.6 |
Outside the workspace
anyhow hyperdb serde serde_json