[package] name = "offline-web-storage" version = "0.1.0" edition = "2021" [dependencies] offline-web-model = { path = "../offline-web-model" } sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "sqlite", "uuid", "chrono"], optional=true } tokio = { version = "1.0", features = ["full"], optional=true } tokio-test = { version = "0.4", optional = true } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" anyhow = "1.0" uuid = { version = "1.0", features = ["v4"] } chrono = { version = "0.4", features = ["serde"] } blake2 = "0.10" thiserror = "2.0.12" wasm-bindgen = { version = "0.2.100", optional=true } idb = { version = "0.6.1", optional=true } web-sys = { version = "0.3", features = ["console"], optional=true } [dev-dependencies] wasm-bindgen-test = "0.3" wasm-bindgen-futures = "0.4" [lib] crate-type = ["cdylib", "rlib"] [features] native = ["sqlx", "tokio", "tokio-test"] wasm = ["offline-web-model/wasm", "uuid/js", "idb", "wasm-bindgen", "web-sys"]