feat: implement browser extension UI with WebAssembly integration
This commit is contained in:
@@ -54,7 +54,7 @@ async fn main() {
|
||||
use kvstore::{KVStore, WasmStore};
|
||||
|
||||
// Must be called from an async context (e.g., JS Promise)
|
||||
let store = WasmStore::open("mydb").await.unwrap();
|
||||
let store = WasmStore::open("vault").await.unwrap();
|
||||
store.set("foo", b"bar").await.unwrap();
|
||||
let val = store.get("foo").await.unwrap();
|
||||
// Use the value as needed
|
||||
|
||||
Reference in New Issue
Block a user