aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'filamento/Cargo.toml')
-rw-r--r--filamento/Cargo.toml2
1 files changed, 2 insertions, 0 deletions
diff --git a/filamento/Cargo.toml b/filamento/Cargo.toml
index 65ebcf4..08f482b 100644
--- a/filamento/Cargo.toml
+++ b/filamento/Cargo.toml
@@ -5,6 +5,7 @@ edition = "2024"
[features]
serde = ["dep:serde", "jid/serde", "uuid/serde", "chrono/serde", "lampada/serde"]
+opfs = ["dep:web-sys"]
reactive_stores = ["dep:reactive_stores"]
[dependencies]
@@ -32,6 +33,7 @@ reactive_stores = { version = "0.1.8", optional = true }
tokio = { workspace = true, features = ["sync", "time", "rt", "fs", "io-std"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
+web-sys = { version = "0.3", features = ["FileSystemDirectoryHandle", "FileSystemWritableFileStream", "FileSystemGetDirectoryOptions", "FileSystemFileHandle", "StorageManager", "File", "Url", "Window", "Navigator"], optional = true }
jid = { version = "0.1.0", path = "../jid", features = ["rusqlite"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"