feat: Add WASM support and browser extension infrastructure

- Add WASM build target and dependencies for all crates.
- Implement IndexedDB-based persistent storage for WASM.
- Create browser extension infrastructure (UI, scripting, etc.).
- Integrate Rhai scripting engine for secure automation.
- Implement user stories and documentation for the extension.
This commit is contained in:
2025-05-16 15:31:53 +03:00
parent 19f46d6edb
commit 13945a8725
25 changed files with 672 additions and 183 deletions

View File

@@ -7,6 +7,9 @@ edition = "2021"
path = "src/lib.rs"
[dependencies]
kvstore = { path = "../kvstore" }
tokio = { version = "1.37", features = ["rt", "macros"] }
rhai = "1.16"
ethers-core = "2.0"
gloo-net = { version = "0.5", features = ["http"] }
rlp = "0.5"
@@ -23,10 +26,16 @@ hex = "0.4"
k256 = { version = "0.13", features = ["ecdsa"] }
[dev-dependencies]
tempfile = "3.10"
wasm-bindgen-test = "0.3"
web-sys = { version = "0.3", features = ["console"] }
tempfile = "3"
kvstore = { path = "../kvstore" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.3", features = ["wasm_js"] }
getrandom_02 = { package = "getrandom", version = "0.2", features = ["js"] }
wasm-bindgen = "0.2"
js-sys = "0.3"
console_error_panic_hook = "0.1"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }