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
crates/cre8-app-messaging/src/unsubscribe.rs
Items
const TOKEN_VERSION const UNSUBSCRIBE_PATH const ENV_SECRET const VAULT_SECRET_NAME const ENV_MAILTO const HEADER_LIST_UNSUBSCRIBE const HEADER_LIST_UNSUBSCRIBE_POST const MAC_HEX_CHARS const MAX_TOKEN_BYTES struct UnsubscribeToken impl UnsubscribeToken struct UnsubscribeClaim enum SecretSource impl SecretSource const UNSUBSCRIBE_PAGE_STYLE
Functions
By call-graph weight (PageRank; 1.0 is the average function). 31 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| secretsrc/unsubscribe.rs:129 | fn | 31 | 5 | 3 | 3 | 2 | |
| secret_sourcesrc/unsubscribe.rs:163 | fn | 3 | 1 | 2 | 1 | 1.3 | |
| mintsrc/unsubscribe.rs:185 | fn | 14 | 2 | 7 | 5 | 1.3 | |
| contextsrc/unsubscribe.rs:426 | fn | 3 | 1 | 8 | 1 | 1.1 | |
| macsrc/unsubscribe.rs:173 | fn | 8 | 1 | 3 | 1 | 1 | |
| verifysrc/unsubscribe.rs:203 | fn | 25 | 8 | 5 | 4 | 0.9 | |
| url_forsrc/unsubscribe.rs:272 | fn | 10 | 1 | 2 | 3 | 0.9 | |
| header_pairsrc/unsubscribe.rs:284 | fn | 8 | 2 | 2 | 1 | 0.9 | |
| omission_reasonsrc/unsubscribe.rs:295 | fn | 9 | 3 | 4 | 1 | 0.9 | |
| unsubscribe_urlsrc/unsubscribe.rs:231 | fn | 7 | 2 | 2 | 0 | 0.9 | |
| canonicalsrc/unsubscribe.rs:169 | fn | 3 | 1 | 3 | 0 | 0.9 | |
| headers_forsrc/unsubscribe.rs:258 | fn | 9 | 1 | 3 | 2 | 0.8 | |
| handle_requestsrc/unsubscribe.rs:314 | fn | 37 | 4 | 4 | 8 | 0.8 | |
| requestsrc/unsubscribe.rs:430 | fn | 11 | 1 | 3 | 0 | 0.7 | |
| html_responsesrc/unsubscribe.rs:388 | fn | 9 | 1 | 2 | 1 | 0.7 | |
| pagesrc/unsubscribe.rs:403 | fn | 9 | 1 | 2 | 0 | 0.7 | |
| body_textsrc/unsubscribe.rs:442 | fn | 3 | 1 | 2 | 0 | 0.6 | |
| link_forsrc/unsubscribe.rs:246 | fn | 5 | 1 | 2 | 4 | 0.6 | |
| refusalsrc/unsubscribe.rs:355 | fn | 11 | 2 | 1 | 5 | 0.6 | |
| confirmation_pagesrc/unsubscribe.rs:367 | fn | 20 | 2 | 1 | 4 | 0.6 | |
| query_paramsrc/unsubscribe.rs:415 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| UnsubscribeToken::querysrc/unsubscribe.rs:90 | method | 3 | 1 | 0 | 0 | 0.5 | |
| SecretSource::as_strsrc/unsubscribe.rs:113 | method | 8 | 4 | 0 | 0 | 0.5 | |
| a_minted_token_verifies_back_to_its_recipient_and_sendersrc/unsubscribe.rs:447 | fn | 9 | 1 | 0 | 4 | 0.5 | |
| a_forged_or_tampered_token_is_rejectedsrc/unsubscribe.rs:458 | fn | 18 | 1 | 0 | 6 | 0.5 | |
| a_channel_token_does_not_transfer_to_another_channelsrc/unsubscribe.rs:478 | fn | 8 | 1 | 0 | 5 | 0.5 | |
| no_secret_means_no_token_and_no_headers_rather_than_a_broken_controlsrc/unsubscribe.rs:488 | fn | 11 | 1 | 0 | 6 | 0.5 | |
| headers_carry_the_one_click_pair_and_omit_without_a_base_urlsrc/unsubscribe.rs:501 | fn | 15 | 1 | 0 | 5 | 0.5 | |
| one_click_post_suppresses_and_get_only_offers_the_formsrc/unsubscribe.rs:518 | fn | 21 | 1 | 0 | 7 | 0.5 | |
| a_list_link_opts_the_recipient_out_of_that_list_onlysrc/unsubscribe.rs:541 | fn | 25 | 1 | 0 | 5 | 0.5 | |
| the_route_refuses_a_bare_address_and_every_bad_token_identicallysrc/unsubscribe.rs:568 | fn | 23 | 1 | 0 | 5 | 0.5 |
Source not readable from this process.