Hashavatar 1.0.2
hashavatar 1.0.2
1.0.2 is an additive ergonomics and documentation release for hashavatar.
Added
AvatarBuilderas a fluent high-level API for common SVG, raster, encoded
output, and cache-key workflows.AvatarErroras a unified high-level error type for builder-based code.AvatarIdentity::cache_key()andAvatarBuilder::cache_key()for stable
opaque cache identifiers without exposing the raw identity digest.hashavatar::preludewith the common application-facing types.- Optional
serdefeature for public style enums.AvatarIdentityremains
intentionally non-serializable. AvatarStyleOptions::summary()andDisplayfor human-readable UI/log
labels.- Runnable examples for builder-based SVG rendering and cache-key derivation.
Security And Compatibility
- The builder stores validation failures and returns them as
Resultvalues;
invalid dimensions or namespace components do not panic. AvatarBuilderuses a redactedDebugimplementation so accidental builder
logging does not print the raw identity input.- Cache keys are derived by hashing the internal digest under a separate
cache-key domain. They are display-safe and opaque, but still correlate equal
identities. - Serde support is limited to public style enums. The identity digest type does
not implementSerializeorDeserialize. - No avatar visual fingerprints were intentionally changed.
Documentation
- Documented the
AvatarSpec::new(width, height, seed)seed as a deterministic
style variant, not a replacement for identity hashing. - Updated README installation examples, builder guidance, cache-key guidance,
dependency policy, security controls, and API summary for1.0.2.
Verification
- Full release gate passed.
- Serde feature path passed.
- Package publish dry-run passed.