Skip to content
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-opportunity opportunity cargo crate

OpportunityApp — grant and contracting opportunities observed from public funding sources (Grants.gov first). Opportunity.Sweep folds listing pages into public, searchable Opportunity vertices and records one receipt per sweep with the hash of every response read; /view/opportunity/list and /view/opportunity/{id} read them back.

crates/cre8-app-opportunity · level 9 · 7,031 lines (6,002 code) · 17 files · 356 fns (92 tests) · cyclomatic Σ 985

13workspace deps
1direct dependents
8transitive dependents
185calls out
0calls in
299call-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.

1 calls2 calls5 calls1 calls2 calls3 calls7 calls1 calls2 calls5 calls3 calls29 calls4 calls11 calls2 calls7 calls2 calls4 calls1 calls1 calls3 calls1 calls2 calls18 calls3 calls25 calls9 calls1 calls8 calls5 calls2 calls19 calls2 calls9 calls1 calls6 calls1 callspast_awards.rspast_awardscrates/cre8-app-opportunity/src/past_awards.rs · 84 call sites in/outconnection.rsconnectioncrates/cre8-app-opportunity/src/connection.rs · 71 call sites in/outmodel.rsmodelcrates/cre8-app-opportunity/src/model.rs · 66 call sites in/outnsf_awards.rsnsf_awardscrates/cre8-app-opportunity/src/nsf_awards.rs · 32 call sites in/outview_templates.rsview_templatescrates/cre8-app-opportunity/src/view_templates.rs · 28 call sites in/outusaspending.rsusaspendingcrates/cre8-app-opportunity/src/usaspending.rs · 23 call sites in/outnih_reporter.rsnih_reportercrates/cre8-app-opportunity/src/nih_reporter.rs · 22 call sites in/outaward_connection.rsaward_connectioncrates/cre8-app-opportunity/src/award_connection.rs · 21 call sites in/outprofile.rsprofilecrates/cre8-app-opportunity/src/profile.rs · 15 call sites in/outprofile_views.rsprofile_viewscrates/cre8-app-opportunity/src/profile_views.rs · 15 call sites in/outmatcher.rsmatchercrates/cre8-app-opportunity/src/matcher.rs · 13 call sites in/oute2e_tests.rse2e_testscrates/cre8-app-opportunity/src/e2e_tests.rs · 7 call sites in/outgrants_gov.rsgrants_govcrates/cre8-app-opportunity/src/grants_gov.rs · 7 call sites in/outsam_gov.rssam_govcrates/cre8-app-opportunity/src/sam_gov.rs · 7 call sites in/outapp.rsappcrates/cre8-app-opportunity/src/app.rs · 3 call sites in/outinit.rsinitcrates/cre8-app-opportunity/src/init.rs · 2 call sites in/out

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 356 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
days_from_isosrc/model.rs:382fn942027.3
opportunity_idsrc/model.rs:148fn95906.5
valid_datesrc/model.rs:377fn33214.3
days_in_monthsrc/model.rs:368fn87104.1
days_from_civilsrc/model.rs:359fn83103.6
civil_from_dayssrc/model.rs:404fn112403.5
connectsrc/connection.rs:109fn112713
callsrc/e2e_tests.rs:41fn311222.9
Opportunity::days_leftsrc/model.rs:190method31512.6
apply_inputsrc/profile.rs:286fn9933982.4
us_date_from_dayssrc/model.rs:417fn41412.4
check_uniquesrc/past_awards.rs:367fn72302.4
str_atsrc/profile_views.rs:46fn311002.2
by_amountsrc/past_awards.rs:206fn31201.6
parsesrc/model.rs:286fn31301.6
past_award_idsrc/past_awards.rs:102fn31511.6
parse_pagesrc/nsf_awards.rs:123fn298621.5
evaluatesrc/matcher.rs:244fn217571.5
listingsrc/matcher.rs:341fn331611.5
ApplicantType::keysrc/profile.rs:67method1915301.5
post_rawsrc/grants_gov.rs:406fn173231.5
Opportunity::is_opensrc/model.rs:196method32511.5
parse_pagesrc/usaspending.rs:146fn226621.4
parse_pagesrc/nih_reporter.rs:129fn3010521.4
valid_assistance_listingsrc/past_awards.rs:275fn74201.4
valid_ueisrc/past_awards.rs:127fn32201.4
today_from_mssrc/model.rs:423fn311101.4
textsrc/view_templates.rs:38fn41601.4
textsrc/past_awards.rs:375fn41401.4
listsrc/profile.rs:220fn186201.4
decode_entitiessrc/grants_gov.rs:368fn3414101.4
listingsrc/sam_gov.rs:183fn7610161.4
naics_codesrc/sam_gov.rs:65fn32201.4
AwardScope::from_inputsrc/past_awards.rs:291method2513841.3
fixturesrc/grants_gov.rs:447fn31401.3
runsrc/init.rs:7fn31201.3
parsesrc/profile.rs:388fn31201.3
id_stringsrc/grants_gov.rs:158fn73301.3
as_accountsrc/e2e_tests.rs:165fn31531.3
install_graphsrc/e2e_tests.rs:22fn111931.3

Outside the workspace

anyhow hyperdb serde serde_json