bevy_db
Overview
Section titled “Overview”Async key-value persistence with one Bevy-facing API and two backends:
- Native —
redbpure-Rust B+tree on disk - WASM —
rexieover IndexedDB in the browser
All I/O runs off the game thread via bevy_tasker. Game systems poll DbRequest<T> handles via try_recv() to drain results without stalling the schedule.
Surface
Section titled “Surface”BevyDbPlugin— initializes the backend and inserts theDbresourceDb— request handle forget/put/deleteDbRequest<T>— pending async result polled withtry_recv()DbError— backend-agnostic error enum