Some checks failed
CultMesh QUIC native / Build win32-x64 (pull_request) Has been skipped
CultMesh QUIC native / Build linux-x64 (pull_request) Has been skipped
CultMesh QUIC native / Release native binaries (pull_request) Has been skipped
CultMesh portability and performance / ubuntu-latest one-command multiplayer onboarding (pull_request) Has been cancelled
CultMesh portability and performance / windows-latest one-command multiplayer onboarding (pull_request) Has been cancelled
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Has been cancelled
CultMesh portability and performance / windows-latest reactive semantics and leases (pull_request) Has been cancelled
CultNet cross-runtime interop / C# / TypeScript / Rust / Python / Kotlin (pull_request) Has been cancelled
CultMesh QUIC native / Verify committed binaries match SHA256SUMS (pull_request) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2.4 KiB
2.4 KiB
Changelog
All notable changes to cultcache-rs are recorded here, following
Keep a Changelog. Earlier releases are recorded
only in git history.
Unreleased
Breaking
- A single-file store written as
cultcache.store.v3is read and written: a record that holds an element id (an owned list element with an[CultElementId]member, carried through every write) marks the store v3, and a v3 store is carried through a rewrite with its ids. A runtime from before this change refuses a v3 store by name. - A write over a file the reader refuses (a zero-byte file, a truncated store, a stamp this runtime does not read) refuses with
CultCacheStoreUnreadableand leaves the file as it is. A whole-store write used to replace such a file. This reverses 0.3.1, wherepush_allreplaced a file with no readable stamp (healing it); the stamp rule now has one owner, the reader every write asks under the lock, and it accepts v1 and v3 (0.3.1 refused v3).
Added
- Lookups, matching the C#
GetByName,GetByIndexandGetGlobal.#[cultcache(name)]and#[cultcache(index)]/#[cultcache(index = "alias")]onDatabaseEntryfields and#[cultcache(global)]on the struct giveCultCache::get_by_name,get_by_indexandget_global. An empty name and a blank index value are not found; records of one type sharing a name or value find the one with the smallest key. A second record of a global type under another key is refused on every write path and on load withCultCacheSecondGlobal. Twonamemembers, or two members with one index alias, are refused at compile time. A member's text comes fromCultLookupValue(String,Optionof one, integers,bool,char). SchemaConflictError, the typed refusal of a write the catalog cannot describe: records of different types under one schema id, or an arrived schema and a registered one that share an id and disagree on the schema name. A whole-store write (push_all) refuses with it, names the schema id, the names involved and a record key, writes nothing and leaves the file as it is. A caller tells it apart witherror.downcast_ref::<SchemaConflictError>().
[0.3.1]
Fixed
push_allreads the store's header under the lock and refuses a format this runtime does not read, withCultCacheStoreUnreadableUnsupportedFormat, leaving the file as it was. A file with no readable stamp is still replaced, so a whole write heals it.