mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-06 08:18:58 +00:00
WorkflowVersion::new serialized the whole version just to enforce the size limit and threw the bytes away, the store re-serialized them to write the blob, and every read re-serialized a third time for the canonicality comparison. Cache the canonical bytes on the struct at construction (skipped during serde) and expose them as an infallible borrow; the now-unconstructable InvalidShape store error variant goes away with it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||