1 viewer
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-proposal proposal cargo crate
ProposalApp — proposals with persistence, policy, reputation weighting, and store helpers.
9workspace deps
2direct dependents
79transitive dependents
36calls out
14calls in
147call-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). 145 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| storesrc/store.rs:43 | fn | 3 | 1 | 5 | 1 | 9.1 | |
| ProposalStore::newsrc/store.rs:36 | method | 3 | 1 | 1 | 0 | 8.2 | |
| lock_storesrc/store.rs:47 | fn | 3 | 1 | 7 | 1 | 3.6 | |
| create_fullsrc/policy.rs:103 | fn | 34 | 1 | 11 | 2 | 2.9 | |
| clear_proposal_store_for_testsrc/store.rs:105 | fn | 6 | 2 | 2 | 1 | 2.6 | |
| get_proposalsrc/store.rs:61 | fn | 4 | 1 | 9 | 1 | 2.5 | |
| tally_weightedsrc/policy.rs:580 | fn | 10 | 1 | 12 | 3 | 2.5 | |
| test_scopesrc/policy.rs:677 | fn | 5 | 1 | 27 | 1 | 2.4 | |
| proposal_scopesrc/policy.rs:683 | fn | 3 | 1 | 27 | 0 | 2.4 | |
| insert_proposalsrc/store.rs:51 | fn | 5 | 1 | 3 | 2 | 2.3 | |
| votesrc/policy.rs:142 | fn | 28 | 3 | 25 | 5 | 2.3 | |
| add_approval_weightsrc/policy.rs:279 | fn | 10 | 3 | 1 | 0 | 2.1 | |
| verdictsrc/persistence.rs:538 | fn | 9 | 2 | 4 | 0 | 2 | |
| create_with_alternativessrc/policy.rs:73 | fn | 25 | 1 | 5 | 1 | 2 | |
| add_choice_weightsrc/policy.rs:266 | fn | 12 | 7 | 2 | 1 | 1.9 | |
| get_votes_lockedsrc/store.rs:86 | fn | 3 | 1 | 4 | 0 | 1.8 | |
| TallyStrategy::simple_majoritysrc/types.rs:134 | method | 3 | 1 | 13 | 0 | 1.6 | |
| evaluate_strategysrc/policy.rs:307 | fn | 19 | 2 | 1 | 3 | 1.5 | |
| insert_proposal_lockedsrc/store.rs:57 | fn | 3 | 1 | 1 | 0 | 1.5 | |
| create_durable_fullsrc/persistence.rs:187 | fn | 38 | 2 | 2 | 3 | 1.5 | |
| createsrc/policy.rs:55 | fn | 12 | 1 | 13 | 1 | 1.5 | |
| persist_proposalsrc/persistence.rs:49 | fn | 14 | 2 | 3 | 4 | 1.5 | |
| handle_proposal_votesrc/connection.rs:92 | fn | 28 | 4 | 3 | 5 | 1.4 | |
| compute_weighted_tallysrc/policy.rs:595 | fn | 32 | 3 | 2 | 4 | 1.4 | |
| ratify_durablesrc/persistence.rs:379 | fn | 7 | 2 | 2 | 3 | 1.3 | |
| with_storesrc/persistence.rs:42 | fn | 6 | 1 | 3 | 1 | 1.3 | |
| handle_proposal_getsrc/connection.rs:146 | fn | 14 | 2 | 4 | 2 | 1.3 | |
| validate_approval_labelssrc/policy.rs:211 | fn | 14 | 2 | 1 | 0 | 1.2 | |
| charter_scopesrc/persistence.rs:359 | fn | 7 | 3 | 1 | 0 | 1.2 | |
| build_tallysrc/policy.rs:290 | fn | 16 | 2 | 2 | 1 | 1.2 | |
| weight_for_votersrc/rep_weight.rs:7 | fn | 15 | 5 | 1 | 0 | 1.2 | |
| ensure_session_identitysrc/connection.rs:21 | fn | 6 | 2 | 3 | 1 | 1.1 | |
| with_store_mutsrc/persistence.rs:35 | fn | 6 | 1 | 3 | 1 | 1.1 | |
| upsert_votesrc/store.rs:90 | fn | 5 | 1 | 2 | 2 | 1.1 | |
| create_durable_with_alternativessrc/persistence.rs:149 | fn | 27 | 1 | 1 | 1 | 1 | |
| connectsrc/connection.rs:38 | fn | 12 | 7 | 2 | 7 | 1 | |
| upsert_vote_lockedsrc/store.rs:96 | fn | 4 | 1 | 1 | 0 | 1 | |
| tallysrc/policy.rs:226 | fn | 6 | 1 | 7 | 3 | 1 | |
| compute_tallysrc/policy.rs:236 | fn | 5 | 1 | 2 | 2 | 0.9 | |
| unique_idsrc/persistence.rs:429 | fn | 4 | 1 | 4 | 0 | 0.9 |
Outside the workspace
anyhow hyperdb serde serde_json thiserror