Skip to content

Commit

Permalink
deps: kurbo is used via peniko. (#461)
Browse files Browse the repository at this point in the history
Since all usages of `kurbo` are via `peniko`, the direct dependency
on `kurbo` is not needed. This makes it easier to keep versions
in sync.

The re-export of `kurbo` was happening directly so it could have
been out of sync with an updated `peniko`, so re-export the version
from `peniko` instead.

`kurbo` was being used to enable the `serde` feature in it, so do
that now via `peniko` as allowed in v0.1.1.
  • Loading branch information
waywardmonkeys committed May 27, 2024
1 parent cd4d3b6 commit 69ac2b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ rust-version = "1.75"
license.workspace = true

[workspace.dependencies]
peniko = "0.1.0"
kurbo = { version = "0.11", features = ["serde"] }
peniko = { version = "0.1.1", features = ["serde"] }
serde = "1.0"
lapce-xi-rope = { version = "0.3.2", features = ["serde"] }
strum = { version = "0.26.2" }
Expand Down Expand Up @@ -47,7 +46,6 @@ rfd = { version = "0.14.0", default-features = false, features = [
raw-window-handle = { workspace = true }
unicode-segmentation = "1.10.0"
peniko = { workspace = true }
kurbo = { workspace = true }
crossbeam-channel = "0.5.6"
im-rc = "15.1.0"
serde = { workspace = true, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ pub use floem_reactive as reactive;
pub use floem_renderer::cosmic_text;
pub use floem_renderer::Renderer;
pub use id::ViewId;
pub use kurbo;
pub use peniko;
pub use peniko::kurbo;
pub use taffy;
pub use view::{recursively_layout_view, AnyView, IntoView, View};
pub use window::{close_window, new_window};

0 comments on commit 69ac2b9

Please sign in to comment.