crossbank 0.1.2

Local, on-device key/value storage for Rust — one API on native (redb) and in the browser (IndexedDB). A Hive-shaped replacement, with no network, server, or sync.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Cross-tab coherence.
//!
//! Gating and re-exports only — the portable half is in [`api`], the two
//! platform halves in `web` and `native`.

pub(crate) mod api;
#[cfg(not(target_arch = "wasm32"))]
mod native;
#[cfg(target_arch = "wasm32")]
mod web;

pub(crate) use api::{Announcement, Sink};

#[cfg(not(target_arch = "wasm32"))]
pub(crate) use native::Coherence;
#[cfg(target_arch = "wasm32")]
pub(crate) use web::{handle, Coherence, SinkHandle};