diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c8eff7d..4a7f0ea 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -5,6 +5,8 @@ on: branches: - main paths: + - Cargo.toml + - Cargo.lock - packages/** - examples/** @@ -13,6 +15,8 @@ on: branches: - main paths: + - Cargo.toml + - Cargo.lock - packages/** - examples/** diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 5776170..5980b70 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -6,6 +6,8 @@ on: branches: - main paths: + - Cargo.toml + - Cargo.lock - packages/** - examples/** @@ -14,6 +16,8 @@ on: branches: - main paths: + - Cargo.toml + - Cargo.lock - packages/** - examples/** diff --git a/Cargo.toml b/Cargo.toml index 61dbf0f..8363b82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ dioxus-sdk-util = { path = "packages/util", version = "0.7.0" } dioxus-sdk-window = { path = "packages/window", version = "0.7.0" } # Dioxus -dioxus = "0.7.0" +dioxus = { version = "0.7.0", default-features = false } dioxus-signals = "0.7.0" dioxus-desktop = "0.7.0" dioxus-config-macro = "0.7.0" diff --git a/examples/channel/Cargo.toml b/examples/channel/Cargo.toml index 9de4dd5..e2af38d 100644 --- a/examples/channel/Cargo.toml +++ b/examples/channel/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" publish = false [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["launch", "lib"] } dioxus-sdk-sync = { workspace = true } [features] diff --git a/examples/geolocation/Cargo.toml b/examples/geolocation/Cargo.toml index 19b5377..19fdacf 100644 --- a/examples/geolocation/Cargo.toml +++ b/examples/geolocation/Cargo.toml @@ -5,11 +5,10 @@ edition = "2021" publish = false [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["launch", "lib"] } dioxus-sdk-geolocation = { workspace = true } [features] default = ["desktop"] web = ["dioxus/web"] desktop = ["dioxus/desktop"] - diff --git a/examples/scroll/Cargo.toml b/examples/scroll/Cargo.toml index d20cedc..4934913 100644 --- a/examples/scroll/Cargo.toml +++ b/examples/scroll/Cargo.toml @@ -6,7 +6,7 @@ publish = false [dependencies] dioxus-sdk-util.workspace = true -dioxus.workspace = true +dioxus = { workspace = true, features = ["launch", "lib"] } [features] default = ["desktop"] diff --git a/examples/storage/Cargo.toml b/examples/storage/Cargo.toml index fac52e5..d397174 100644 --- a/examples/storage/Cargo.toml +++ b/examples/storage/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" publish = false [dependencies] -dioxus = { workspace = true, features = ["router"] } +dioxus = { workspace = true, features = ["launch", "lib", "router"] } dioxus-sdk-storage = { workspace = true } [features] diff --git a/examples/theme/Cargo.toml b/examples/theme/Cargo.toml index 2095f35..67582b0 100644 --- a/examples/theme/Cargo.toml +++ b/examples/theme/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" publish = false [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["launch", "lib"] } dioxus-sdk-window = { workspace = true } [features] diff --git a/examples/timing/Cargo.toml b/examples/timing/Cargo.toml index 90ed194..a813748 100644 --- a/examples/timing/Cargo.toml +++ b/examples/timing/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" publish = false [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["launch", "lib"] } dioxus-sdk-time = { workspace = true } gloo-timers = { version = "0.3", features = ["futures"] } diff --git a/examples/window_size/Cargo.toml b/examples/window_size/Cargo.toml index 1a38acc..7febbab 100644 --- a/examples/window_size/Cargo.toml +++ b/examples/window_size/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" publish = false [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["launch", "lib"] } dioxus-sdk-window = { workspace = true } [features] diff --git a/packages/geolocation/Cargo.toml b/packages/geolocation/Cargo.toml index 2585c12..2317612 100644 --- a/packages/geolocation/Cargo.toml +++ b/packages/geolocation/Cargo.toml @@ -14,7 +14,7 @@ homepage.workspace = true repository.workspace = true [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["hooks", "signals"] } cfg-if = { workspace = true } futures = { workspace = true } futures-util = { workspace = true } diff --git a/packages/storage/Cargo.toml b/packages/storage/Cargo.toml index 3bd1340..1bca8bc 100644 --- a/packages/storage/Cargo.toml +++ b/packages/storage/Cargo.toml @@ -14,7 +14,8 @@ homepage.workspace = true repository.workspace = true [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["hooks", "logger", "signals"] } +dioxus-config-macro = { workspace = true } tokio = { workspace = true, features = ["sync"] } futures-util = { workspace = true } cfg-if = { workspace = true } @@ -35,4 +36,4 @@ wasm-bindgen = { workspace = true } [target.'cfg(target_os = "android")'.dependencies] jni = "0.21.1" -ndk-context = "0.1.1" \ No newline at end of file +ndk-context = "0.1.1" diff --git a/packages/storage/src/lib.rs b/packages/storage/src/lib.rs index 46be68c..1479cb6 100644 --- a/packages/storage/src/lib.rs +++ b/packages/storage/src/lib.rs @@ -34,6 +34,7 @@ mod persistence; pub use client_storage::{LocalStorage, SessionStorage}; use dioxus::core::{ReactiveContext, current_scope_id, generation, needs_update}; use dioxus::logger::tracing::trace; +use dioxus_config_macro::{fullstack, server_only}; use futures_util::stream::StreamExt; pub use persistence::{ new_persistent, new_singleton_persistent, use_persistent, use_singleton_persistent, diff --git a/packages/sync/Cargo.toml b/packages/sync/Cargo.toml index 4cb8028..07de8c1 100644 --- a/packages/sync/Cargo.toml +++ b/packages/sync/Cargo.toml @@ -14,7 +14,7 @@ homepage.workspace = true repository.workspace = true [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["hooks", "signals"] } uuid = { version = "1.3.2", features = ["v4"] } async-broadcast = "0.7.1" diff --git a/packages/time/Cargo.toml b/packages/time/Cargo.toml index 51b4808..d0f3396 100644 --- a/packages/time/Cargo.toml +++ b/packages/time/Cargo.toml @@ -14,7 +14,7 @@ homepage.workspace = true repository.workspace = true [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["hooks", "signals"] } futures = { workspace = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] diff --git a/packages/util/Cargo.toml b/packages/util/Cargo.toml index 4879584..9fc7498 100644 --- a/packages/util/Cargo.toml +++ b/packages/util/Cargo.toml @@ -14,5 +14,5 @@ homepage.workspace = true repository.workspace = true [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["document", "hooks", "logger", "signals"] } serde.workspace = true diff --git a/packages/window/Cargo.toml b/packages/window/Cargo.toml index 7313ccf..14397a2 100644 --- a/packages/window/Cargo.toml +++ b/packages/window/Cargo.toml @@ -14,7 +14,7 @@ homepage.workspace = true repository.workspace = true [dependencies] -dioxus = { workspace = true } +dioxus = { workspace = true, features = ["hooks", "signals"] } dioxus-config-macro = { workspace = true } [target.'cfg(target_family = "wasm")'.dependencies]