Closed VorpalBlade closed 3 months ago
Oh I think I found it (though it would have been useful to have some indication of what field or struct it was deserialising): I had a structure that had a serialize_with
(but no matching deserializer, since before it had only been used to output json).
Still no clue why I was getting a deserialization error when serializing.
I'm attempting to use
DiskCache
in a command line program to not have to do slow uncompression of data from the system package manager every time I run the command. Unfortunately I run into some pretty strange errors when inserting in the disk cache:The strange issue is that this doesn't happen consistently. The first few dozen inserts seem to always succeeded on any given run. The specific hex string varies. I don't understand why I'm getting a
DiskCacheError::CacheDeserializationError
when inserting in the cache? Shouldn't it be a serialization error instead?The type I'm inserting is fairly complex. I'm using a
DiskCache<CacheKey, Vec<FileEntryCache>>
(not using the macro decorators, don't work for my use case). Where:I don't have a minimal reproducer at this time. What is the next step to debugging this?