Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update leptos_reactive #3

Merged
merged 2 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ smallvec = "1.10.0"
educe = "0.4.20"
parley = { git = "https://github.com/lapce/parley", rev = "dd30cc9e4ae733d80650ad3ab0db0462ccd67e57" }
taffy = "0.3.3"
leptos_reactive = { version = "0.1.3", features = ["stable"] }
leptos_reactive = { version = "0.2.4", features = ["stable"] }
glazier = { git = "https://github.com/linebender/glazier" }
vello = { git = "https://github.com/linebender/vello", rev = "2f268d4e0f8596c2c05f4982ddc558e1cae0ffa2" }
vello_svg = { git = "https://github.com/linebender/vello", rev = "2f268d4e0f8596c2c05f4982ddc558e1cae0ffa2" }
Expand All @@ -27,8 +27,4 @@ floem_renderer = { path = "renderer" }
floem_vger = { path = "vger" }

[workspace]
members = [
"renderer",
"vger",
"examples/*",
]
members = ["renderer", "vger", "examples/*"]
4 changes: 1 addition & 3 deletions examples/counter/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use std::sync::Arc;

use floem::{
app::AppContext,
peniko::Color,
reactive::create_signal,
reactive::{create_signal, SignalGet, SignalUpdate},
stack::stack,
style::{AlignItems, Dimension, FlexDirection, Style},
view::View,
Expand Down
2 changes: 1 addition & 1 deletion examples/virtual_list/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use floem::{
app::AppContext,
reactive::create_signal,
reactive::{create_signal, SignalGet},
style::{AlignItems, Dimension, FlexDirection, Style},
view::View,
views::virtual_list,
Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use glazier::{
kurbo::{Affine, Point, Rect},
FileDialogOptions, FileDialogToken, FileInfo, WinHandler,
};
use leptos_reactive::Scope;
use leptos_reactive::{Scope, SignalSet};
use vello::{SceneBuilder, SceneFragment};

use crate::{
Expand Down
3 changes: 2 additions & 1 deletion src/ext_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ use std::{

use glazier::{FileDialogOptions, FileInfo, IdleHandle, IdleToken};
use leptos_reactive::{
create_effect, create_signal, ReadSignal, Scope, ScopeDisposer, WriteSignal,
create_effect, create_signal, ReadSignal, Scope, ScopeDisposer, SignalGet, SignalSet,
WriteSignal,
};
use once_cell::sync::Lazy;
use parking_lot::Mutex;
Expand Down
4 changes: 3 additions & 1 deletion src/views/virtual_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ use std::{hash::Hash, marker::PhantomData, ops::Range};

use glazier::kurbo::Rect;
use indexmap::IndexMap;
use leptos_reactive::{create_effect, create_signal, Scope, ScopeDisposer, WriteSignal};
use leptos_reactive::{
create_effect, create_signal, Scope, ScopeDisposer, SignalGet, SignalSet, WriteSignal,
};
use smallvec::SmallVec;
use taffy::{prelude::Node, style::Dimension};

Expand Down