diff --git a/Cargo.lock b/Cargo.lock index 399db92..4d1891b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1030,6 +1030,18 @@ dependencies = [ "regex", ] +[[package]] +name = "gloo-timers" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fb7d06c1c8cc2a29bee7ec961009a0b2caa0793ee4900c2ffb348734ba1c8f9" +dependencies = [ + "futures-channel", + "futures-core", + "js-sys", + "wasm-bindgen", +] + [[package]] name = "gobject-sys" version = "0.15.10" @@ -3031,6 +3043,7 @@ dependencies = [ name = "tauri-sys" version = "0.1.0" dependencies = [ + "futures", "js-sys", "log", "semver 1.0.14", @@ -3061,6 +3074,8 @@ version = "0.0.0" dependencies = [ "anyhow", "console_error_panic_hook", + "futures", + "gloo-timers", "log", "serde", "sycamore", diff --git a/Cargo.toml b/Cargo.toml index 1a487c8..3662ba2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +futures = { version = "0.3.25", optional = true } js-sys = "0.3.59" log = "0.4.17" semver = {version = "1.0.14", optional = true, features = ["serde"]} @@ -28,16 +29,16 @@ all = ["app", "clipboard", "event", "mocks", "tauri", "window", "process", "dial app = ["dep:semver"] clipboard = [] dialog = [] -event = [] +event = ["dep:futures"] global_shortcut = [] mocks = [] -tauri = ["dep:url"] -window = [] -process = [] -os = [] notification = [] +os = [] path = [] -updater = [] +process = [] +tauri = ["dep:url"] +updater = ["dep:futures"] +window = ["dep:futures"] [workspace] members = ["examples/test", "examples/test/src-tauri"] diff --git a/examples/test/Cargo.toml b/examples/test/Cargo.toml index 2fa5c6f..64da530 100644 --- a/examples/test/Cargo.toml +++ b/examples/test/Cargo.toml @@ -12,6 +12,8 @@ console_error_panic_hook = "0.1.7" wasm-bindgen-futures = "0.4.32" serde = { version = "1.0.147", features = ["derive"] } log = { version = "0.4.17", features = ["serde"] } +futures = "0.3.25" +gloo-timers = { version = "0.2.4", features = ["futures"] } [features] ci = [] diff --git a/examples/test/index.html b/examples/test/index.html index 417f143..f4301a8 100644 --- a/examples/test/index.html +++ b/examples/test/index.html @@ -3,5 +3,6 @@