1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,952 · python 20,426 · 6,408 files · digest f72e9ad3d771 · built in 1.3 s · crystals off
cre8-app-agent-consent agent cargo crate
Shared agent consent policy and persistence helpers.
1workspace deps
5direct dependents
124transitive dependents
6calls out
19calls in
155call-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
Heaviest functions
By call-graph weight (PageRank; 1.0 is the average function). 139 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| ConsentContext::emptysrc/lib.rs:195 | method | 3 | 1 | 9 | 0 | 5.9 | |
| open_graphsrc/lib.rs:1250 | fn | 3 | 1 | 41 | 0 | 4.7 | |
| parse_consentsrc/lib.rs:381 | fn | 18 | 1 | 3 | 4 | 4.7 | |
| upsert_consentsrc/lib.rs:256 | fn | 5 | 1 | 41 | 3 | 4.5 | |
| load_consents_granted_bysrc/lib.rs:350 | fn | 14 | 5 | 9 | 1 | 3.5 | |
| parse_decisionsrc/lib.rs:931 | fn | 3 | 1 | 2 | 0 | 3.4 | |
| derive_consent_idsrc/lib.rs:46 | fn | 7 | 1 | 2 | 0 | 3.4 | |
| AgentConsent::newsrc/lib.rs:93 | method | 22 | 1 | 5 | 1 | 3.2 | |
| push_decision_ifsrc/lib.rs:947 | fn | 10 | 4 | 2 | 1 | 3.1 | |
| walk_decisionssrc/lib.rs:935 | fn | 11 | 2 | 4 | 1 | 3 | |
| AgentConsent::is_activesrc/lib.rs:123 | method | 11 | 4 | 7 | 0 | 3 | |
| consent_vidsrc/lib.rs:34 | fn | 3 | 1 | 3 | 0 | 2.4 | |
| spending_consentsrc/lib.rs:1275 | fn | 20 | 1 | 12 | 2 | 2.4 | |
| visibility_consentsrc/lib.rs:1271 | fn | 3 | 1 | 20 | 2 | 2.2 | |
| current_utc_hoursrc/lib.rs:632 | fn | 6 | 1 | 2 | 0 | 1.9 | |
| optional_consent_stringsrc/lib.rs:449 | fn | 3 | 1 | 1 | 0 | 1.8 | |
| required_consent_stringsrc/lib.rs:453 | fn | 6 | 2 | 1 | 0 | 1.8 | |
| required_consent_i64src/lib.rs:460 | fn | 6 | 2 | 1 | 0 | 1.8 | |
| validate_consent_for_upsertsrc/lib.rs:262 | fn | 12 | 4 | 1 | 0 | 1.8 | |
| consent_vertexsrc/lib.rs:275 | fn | 17 | 1 | 1 | 2 | 1.8 | |
| upsert_consent_vertexsrc/lib.rs:297 | fn | 7 | 2 | 1 | 0 | 1.8 | |
| apply_context_expansionsrc/lib.rs:540 | fn | 16 | 6 | 1 | 2 | 1.7 | |
| load_consentsrc/lib.rs:306 | fn | 7 | 1 | 7 | 2 | 1.6 | |
| ConsentContext::withsrc/lib.rs:199 | method | 3 | 1 | 3 | 0 | 1.6 | |
| derive_decision_idsrc/lib.rs:858 | fn | 14 | 2 | 1 | 0 | 1.6 | |
| scale_limitssrc/lib.rs:616 | fn | 15 | 5 | 1 | 0 | 1.5 | |
| parse_consent_identitysrc/lib.rs:418 | fn | 7 | 1 | 1 | 1 | 1.5 | |
| parse_consent_grantsrc/lib.rs:426 | fn | 6 | 1 | 1 | 0 | 1.5 | |
| parse_consent_timestampssrc/lib.rs:433 | fn | 7 | 1 | 1 | 1 | 1.5 | |
| parse_consent_signaturessrc/lib.rs:441 | fn | 7 | 1 | 1 | 1 | 1.5 | |
| record_decisionsrc/lib.rs:888 | fn | 4 | 1 | 6 | 2 | 1.5 | |
| allowed_decisionsrc/lib.rs:1143 | fn | 3 | 1 | 1 | 0 | 1.4 | |
| denied_decisionsrc/lib.rs:1147 | fn | 3 | 1 | 1 | 0 | 1.4 | |
| apply_context_expansionssrc/lib.rs:534 | fn | 5 | 2 | 1 | 1 | 1.4 | |
| is_spending_delegatedsrc/lib.rs:572 | fn | 13 | 1 | 9 | 2 | 1.4 | |
| decision_vidsrc/lib.rs:794 | fn | 3 | 1 | 3 | 0 | 1.3 | |
| ConsentDecision::newsrc/lib.rs:874 | method | 12 | 1 | 4 | 1 | 1.3 | |
| spending_consent_outcomesrc/lib.rs:1099 | fn | 17 | 3 | 2 | 4 | 1.3 | |
| consent_grant_valuesrc/lib.rs:293 | fn | 3 | 1 | 1 | 0 | 1.2 | |
| evaluate_viewsrc/lib.rs:1006 | fn | 9 | 1 | 5 | 2 | 1.2 |
Outside the workspace
anyhow hyperdb serde serde_json sha2