Skip to content
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-util-secret crates cargo crate

SecretString — String newtype that masks Debug output, refuses Serialize, and best-effort zeroizes on drop. Sixth crate in the cre8-util-* tier. Pure std.

crates/cre8-util-secret · level 0 · 194 lines (109 code) · 1 files · 16 fns (6 tests) · cyclomatic Σ 19

0workspace deps
19direct dependents
210transitive dependents
0calls out
249calls in
65.7call-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). 16 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
SecretString::newsrc/lib.rs:32method31117032.6
SecretString::expose_secretsrc/lib.rs:39method31142026.2
SecretString::is_emptysrc/lib.rs:45method31000.5
SecretString::lensrc/lib.rs:51method31000.5
SecretString::fmtsrc/lib.rs:57trait impl51000.5
SecretString::dropsrc/lib.rs:72trait impl162000.5
SecretString::clonesrc/lib.rs:91trait impl31000.5
SecretString::fromsrc/lib.rs:97trait impl31010.5
SecretString::fromsrc/lib.rs:103trait impl31010.5
SecretString::eqsrc/lib.rs:114trait impl103000.5
debug_does_not_leak_valuesrc/lib.rs:133fn91010.5
expose_secret_returns_valuesrc/lib.rs:144fn41020.5
is_empty_and_lensrc/lib.rs:150fn91010.5
from_str_and_stringsrc/lib.rs:161fn51010.5
equality_is_value_basedsrc/lib.rs:168fn101010.5
clone_produces_independent_secretsrc/lib.rs:180fn81020.5