Skip to content

Commit

Permalink
chore: Bump dx (#544)
Browse files Browse the repository at this point in the history
* chore: Bump dx

* Update Cargo.toml

* bumpd x

* bump dx

* bump dx

* bump dx

* migrate to dioxus-sdk
  • Loading branch information
marc2332 authored Apr 6, 2024
1 parent 0e05a3e commit 9b41933
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
36 changes: 18 additions & 18 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ use_camera = ["freya/use_camera"]
hot-reload = ["freya/hot-reload"]

[patch.crates-io]
dioxus = { git = "https://github.com/DioxusLabs/dioxus", rev = "46b0eeb12cf2b388d29a9061b74e9470a8487679" }
dioxus-rsx = { git = "https://github.com/DioxusLabs/dioxus", rev = "46b0eeb12cf2b388d29a9061b74e9470a8487679" }
dioxus-core-macro = { git = "https://github.com/DioxusLabs/dioxus", rev = "46b0eeb12cf2b388d29a9061b74e9470a8487679" }
dioxus-hooks = { git = "https://github.com/DioxusLabs/dioxus", rev = "46b0eeb12cf2b388d29a9061b74e9470a8487679" }
dioxus-signals = { git = "https://github.com/DioxusLabs/dioxus", rev = "46b0eeb12cf2b388d29a9061b74e9470a8487679" }
dioxus-core = { git = "https://github.com/DioxusLabs/dioxus", rev = "46b0eeb12cf2b388d29a9061b74e9470a8487679" }
dioxus-hot-reload = { git = "https://github.com/DioxusLabs/dioxus", rev = "46b0eeb12cf2b388d29a9061b74e9470a8487679" }
dioxus-router = { git = "https://github.com/DioxusLabs/dioxus", rev = "46b0eeb12cf2b388d29a9061b74e9470a8487679" }
# dioxus = { git = "https://github.com/DioxusLabs/dioxus", rev = "7beacdf9c76ae5412d3c2bcd55f7c5d87f486a0f" }
# dioxus-rsx = { git = "https://github.com/DioxusLabs/dioxus", rev = "7beacdf9c76ae5412d3c2bcd55f7c5d87f486a0f" }
# dioxus-core-macro = { git = "https://github.com/DioxusLabs/dioxus", rev = "7beacdf9c76ae5412d3c2bcd55f7c5d87f486a0f" }
# dioxus-hooks = { git = "https://github.com/DioxusLabs/dioxus", rev = "7beacdf9c76ae5412d3c2bcd55f7c5d87f486a0f" }
# dioxus-signals = { git = "https://github.com/DioxusLabs/dioxus", rev = "7beacdf9c76ae5412d3c2bcd55f7c5d87f486a0f" }
# dioxus-core = { git = "https://github.com/DioxusLabs/dioxus", rev = "7beacdf9c76ae5412d3c2bcd55f7c5d87f486a0f" }
# dioxus-hot-reload = { git = "https://github.com/DioxusLabs/dioxus", rev = "7beacdf9c76ae5412d3c2bcd55f7c5d87f486a0f" }
# dioxus-router = { git = "https://github.com/DioxusLabs/dioxus", rev = "7beacdf9c76ae5412d3c2bcd55f7c5d87f486a0f" }

[workspace.dependencies]
freya = { path = "crates/freya", version = "0.1" }
Expand All @@ -39,15 +39,15 @@ torin = { path = "crates/torin", version = "0.1" }
dioxus-native-core-macro = { path = "crates/native-core-macro", version = "0.1" }
dioxus-native-core = { path = "crates/native-core", version = "0.1" }

dioxus = { version = "0.5.0-alpha.0", default-features = false, features = ["macro", "signals", "hooks"]}
dioxus-rsx = { version = "0.5.0-alpha.0", features = ["hot_reload"] }
dioxus-core-macro = { version = "0.5.0-alpha.0" }
dioxus-hooks = { version = "0.5.0-alpha.0" }
dioxus-signals = { version = "0.5.0-alpha.0" }
dioxus-core = { version = "0.5.0-alpha.0" }
dioxus-hot-reload = { version = "0.5.0-alpha.0", features = ["file_watcher"], default-features = false }
dioxus-router = { version = "0.5.0-alpha.0", default-features = false }
dioxus-std = { git = "https://github.com/marc2332/dioxus-std", rev = "4d8ae33b94537d54471cd924c32f03c1d949430f", features = ["clipboard"]}
dioxus = { version = "0.5", default-features = false, features = ["macro", "signals", "hooks"]}
dioxus-rsx = { version = "0.5", features = ["hot_reload"] }
dioxus-core-macro = { version = "0.5" }
dioxus-hooks = { version = "0.5" }
dioxus-signals = { version = "0.5" }
dioxus-core = { version = "0.5" }
dioxus-hot-reload = { version = "0.5", features = ["file_watcher"], default-features = false }
dioxus-router = { version = "0.5", default-features = false }
dioxus-sdk = { version = "0.5", features = ["clipboard"]}

skia-safe = { version = "0.72.0", features = ["gl", "textlayout", "svg"] }

Expand Down Expand Up @@ -78,7 +78,7 @@ freya = { workspace = true }
freya-core = { workspace = true }
reqwest = { version = "0.11.22", features = ["json"] }
serde = "1.0.189"
dioxus-std = { git = "https://github.com/marc2332/dioxus-std", rev = "4d8ae33b94537d54471cd924c32f03c1d949430f", features = ["i18n"] }
dioxus-sdk = { version = "0.5", features = ["i18n"] }
rand = "0.8.5"
dioxus-router = { workspace = true }
itertools = "0.11.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ dioxus = { version = "0.4", features = ["macro", "hooks"], default-features = fa
- 🔄️ Dioxus **Hot-reload** support
- 📒 Multi-line **text editing** (experimental ⚠️)
- 🦾 Basic **Accessibility** Support (experimental ⚠️)
- 🧩Compatible with dioxus-std and other Dioxus renderer-agnostic libraries
- 🧩Compatible with dioxus-sdk and other Dioxus renderer-agnostic libraries

### Goals 😁
- Performant and low memory usage
Expand Down
2 changes: 1 addition & 1 deletion book/src/what_is_freya.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- 🔄️ Dioxus **Hot-reload** support
- 📒 Multi-line **text editing** (experimental ⚠️)
- 🦾 Basic **Accessibility** Support (experimental ⚠️)
- 🧩Compatible with dioxus-std and other Dioxus renderer-agnostic libraries
- 🧩Compatible with dioxus-sdk and other Dioxus renderer-agnostic libraries

### Why 🧬 Dioxus?

Expand Down
2 changes: 1 addition & 1 deletion crates/hooks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ torin = { workspace = true }
dioxus-hooks = { workspace = true }
dioxus-signals = { workspace = true }
dioxus-core = { workspace = true }
dioxus-std = { workspace = true }
dioxus-sdk = { workspace = true }

tokio = { workspace = true }
winit = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/hooks/src/rope_editor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{cmp::Ordering, fmt::Display, ops::Range};

use dioxus_std::clipboard::UseClipboard;
use dioxus_sdk::clipboard::UseClipboard;
use ropey::iter::Lines;
pub use ropey::Rope;

Expand Down
2 changes: 1 addition & 1 deletion crates/hooks/src/text_editor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{borrow::Cow, cmp::Ordering, fmt::Display, ops::Range};

use dioxus_std::clipboard::UseClipboard;
use dioxus_sdk::clipboard::UseClipboard;
use freya_elements::events::keyboard::{Code, Key, Modifiers};

/// Holds the position of a cursor in a text
Expand Down
2 changes: 1 addition & 1 deletion crates/hooks/src/use_editable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use std::{

use dioxus_core::{prelude::spawn, use_hook, AttributeValue};
use dioxus_hooks::to_owned;
use dioxus_sdk::clipboard::use_clipboard;
use dioxus_signals::{Readable, Signal, Writable};
use dioxus_std::clipboard::use_clipboard;
use freya_common::{CursorLayoutResponse, EventMessage};
use freya_elements::events::{KeyboardData, MouseData};
use freya_node_state::{CursorReference, CustomAttributeValues};
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
windows_subsystem = "windows"
)]

use dioxus_std::{
use dioxus_sdk::{
i18n::{use_i18, use_init_i18n, Language},
translate,
};
Expand Down

0 comments on commit 9b41933

Please sign in to comment.