Skip to content
1 viewer

rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off

cre8-app-proposal proposal cargo crate

ProposalApp — proposals with persistence, policy, reputation weighting, and store helpers.

crates/cre8-app-proposal · level 11 · 2,971 lines (2,313 code) · 8 files · 145 fns (48 tests) · cyclomatic Σ 252

9workspace deps
2direct dependents
73transitive dependents
36calls out
14calls in
146call-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.

normal dep · 5 calls · source referencedev dep · 9 calls · source referencenormal dep · 1 calls · source referencenormal dep · 1 calls · source referencenormal dep · 2 calls · source referencenormal dep · 12 calls · source referencenormal dep · 8 calls · source referencenormal dep · 11 calls · source referencenormal dep · 0 calls · source referencenormal dep · 1 calls · source referencenormal dep · 0 calls · source referencedev dep · 0 calls · incomplete scannormal dep · 0 calls · source referenceapp-proposalL11 · 2,313 linescre8-app-proposalapp-budgetL12 · 4,150 linescre8-app-budgetapp-legal-codeL25 · 16,584 linescre8-app-legal-codeapp-charterL8 · 2,341 linescre8-app-charterapp-manifoldL10 · 18,941 linescre8-app-manifoldapp-project-modelL4 · 958 linescre8-app-project-modelapp-protocolL9 · 26,097 linescre8-app-protocolplatform-timeL3 · 65 linescre8-platform-timeruntime-app-typesL6 · 2,860 linescre8-runtime-app-typesruntime-contractsL0 · 6,322 linescre8-runtime-contractsruntime-coreL2 · 747 linescre8-runtime-coreruntime-hostL1 · 1,649 linescre8-runtime-hostapp-virtual_bridgeL16 · 11,208 linescre8-app-virtual_bridgeruntime-app-catalogL28 · 681 linescre8-runtime-app-catalog

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
storesrc/store.rs:43fn31519.1
ProposalStore::newsrc/store.rs:36method31108.2
lock_storesrc/store.rs:47fn31713.6
create_fullsrc/policy.rs:103fn3411122.9
clear_proposal_store_for_testsrc/store.rs:105fn62212.6
get_proposalsrc/store.rs:61fn41912.5
tally_weightedsrc/policy.rs:580fn1011232.4
test_scopesrc/policy.rs:677fn512712.4
proposal_scopesrc/policy.rs:683fn312702.4
insert_proposalsrc/store.rs:51fn51322.3
votesrc/policy.rs:142fn2832552.3
add_approval_weightsrc/policy.rs:279fn103102.1
verdictsrc/hyperdb_store.rs:538fn92402
create_with_alternativessrc/policy.rs:73fn251512
add_choice_weightsrc/policy.rs:266fn127211.9
get_votes_lockedsrc/store.rs:86fn31401.8
TallyStrategy::simple_majoritysrc/model.rs:134method311301.6
evaluate_strategysrc/policy.rs:307fn192131.5
insert_proposal_lockedsrc/store.rs:57fn31101.5
create_durable_fullsrc/hyperdb_store.rs:187fn382231.5
createsrc/policy.rs:55fn1211311.4
persist_proposalsrc/hyperdb_store.rs:49fn142341.4
handle_proposal_votesrc/connection.rs:92fn284351.4
compute_weighted_tallysrc/policy.rs:595fn323241.4
ratify_durablesrc/hyperdb_store.rs:379fn72231.3
with_storesrc/hyperdb_store.rs:42fn61311.3
handle_proposal_getsrc/connection.rs:146fn142421.3
validate_approval_labelssrc/policy.rs:211fn142101.2
charter_scopesrc/hyperdb_store.rs:359fn73101.2
build_tallysrc/policy.rs:290fn162211.2
weight_for_votersrc/rep_weight.rs:7fn155101.2
ensure_session_identitysrc/connection.rs:21fn62311.1
with_store_mutsrc/hyperdb_store.rs:35fn61311.1
upsert_votesrc/store.rs:90fn51221.1
create_durable_with_alternativessrc/hyperdb_store.rs:149fn271111
connectsrc/connection.rs:38fn127271
upsert_vote_lockedsrc/store.rs:96fn41100.9
tallysrc/policy.rs:226fn61730.9
compute_tallysrc/policy.rs:236fn51220.9
unique_idsrc/hyperdb_store.rs:429fn41400.9

Outside the workspace

anyhow hyperdb serde serde_json thiserror