cultcache-rs README: only a missing store is empty; an empty file is Undecodable

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-30 17:04:39 +02:00
commit 271801106b

View file

@ -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**