From 271801106b5919fb26918999801b3bb1fdb004b7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 17:04:39 +0200 Subject: [PATCH] cultcache-rs README: only a missing store is empty; an empty file is Undecodable Co-Authored-By: Claude Opus 5.5 --- packages/cultcache-rs/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/cultcache-rs/README.md b/packages/cultcache-rs/README.md index fc9c2f5f..aadd5af2 100644 --- a/packages/cultcache-rs/README.md +++ b/packages/cultcache-rs/README.md @@ -316,6 +316,12 @@ if let Err(error) = store.pull_all() { An I/O failure never carries `CultCacheStoreUnreadable`, and the chain under `CultCacheStoreUnreadable` never holds a `std::io::Error`. +Only a store file that does not exist (`std::io::ErrorKind::NotFound`) reads as +an empty store. Any other failure to reach it, such as a symlink loop, a file +where a parent directory should be, or a missing permission, is an I/O error. +A store file that exists and holds zero bytes is `Undecodable`: no CultCache +writer leaves one. + ## Near-Term Ergonomic Improvements 1. **Derive macro**