Skip to content

Commit b7d5603

Browse files
committed
refactor: Remove -engine from some crate names
1 parent 456587c commit b7d5603

File tree

14 files changed

+22
-22
lines changed

14 files changed

+22
-22
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[workspace]
7-
members = ["layout-engine", "renderer", "state", "freya", "elements-namespace", "components", "hooks"]
7+
members = ["layers", "layout", "renderer", "state", "freya", "elements-namespace", "components", "hooks"]
88

99
[features]
1010
x11 = ["freya/x11"]

freya/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ wireframe = ["renderer/wireframe"]
99

1010
[dependencies]
1111
state = { path = "../state"}
12-
layout-engine = { path = "../layout-engine"}
12+
layout = { path = "../layout"}
1313
renderer = { path = "../renderer"}
1414
dioxus = { git = "https://github.com/marc2332/dioxus" , branch = "patch-3" }
1515
dioxus-html = { git = "https://github.com/marc2332/dioxus" , branch = "patch-3" }

layers-engine/Cargo.toml renamed to layers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "layers-engine"
2+
name = "layers"
33
version = "0.1.0"
44
edition = "2021"
55

File renamed without changes.

layout-engine/Cargo.lock renamed to layout/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

layout-engine/Cargo.toml renamed to layout/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
2-
name = "layout-engine"
2+
name = "layout"
33
version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
77
dioxus-native-core = { git = "https://github.com/marc2332/dioxus" , branch = "patch-3" }
88
dioxus = { git = "https://github.com/marc2332/dioxus" , branch = "patch-3" }
99
state = { path = "../state"}
10-
layers-engine = { path = "../layers-engine"}
10+
layers = { path = "../layers"}
1111

1212
[dev-dependencies]
1313
dioxus-native-core-macro = { git = "https://github.com/marc2332/dioxus" , branch = "patch-3" }

layout-engine/src/lib.rs renamed to layout/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use dioxus::core::ElementId;
22
use dioxus_native_core::real_dom::NodeType;
3-
use layers_engine::{Layers, NodeArea, NodeData};
3+
use layers::{Layers, NodeArea, NodeData};
44
use state::node::{DirectionMode, SizeMode};
55

66
fn calculate_area(node_data: &NodeData, mut area: NodeArea, parent_area: NodeArea) -> NodeArea {

layout-engine/tests/layouts.rs renamed to layout/tests/layouts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use dioxus_core::ElementId;
22
use dioxus_native_core::real_dom::{Node, NodeType};
3-
use layers_engine::{Layers, NodeArea, NodeData};
4-
use layout_engine::calculate_node;
3+
use layers::{Layers, NodeArea, NodeData};
4+
use layout::calculate_node;
55
use lazy_static::lazy_static;
66
use state::node::{DirectionMode, NodeState, Size, SizeMode};
77

renderer/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ skia-safe = { version = "*", features = ["gl", "textlayout"] }
1414
dioxus-core = { git = "https://github.com/marc2332/dioxus" , branch = "patch-3" }
1515
dioxus-native-core = { git = "https://github.com/marc2332/dioxus" , branch = "patch-3" }
1616
dioxus-html = { git = "https://github.com/marc2332/dioxus" , branch = "patch-3" }
17-
layout-engine = { path = "../layout-engine"}
17+
layout = { path = "../layout"}
1818
state = { path = "../state"}
1919
enumset = "1.0.11"
20-
layers-engine = { path = "../layers-engine"}
20+
layers = { path = "../layers"}

renderer/src/events_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use dioxus_html::{
77
on::MouseData,
88
};
99
use enumset::enum_set;
10-
use layers_engine::RenderData;
10+
use layers::RenderData;
1111

1212
use crate::RendererRequest;
1313

renderer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use dioxus_core::{exports::futures_channel::mpsc::UnboundedSender, SchedulerMsg};
22
use dioxus_native_core::real_dom::RealDom;
33
use glutin::event::{MouseScrollDelta, WindowEvent};
4-
use layers_engine::NodeArea;
4+
use layers::NodeArea;
55
use skia_safe::{textlayout::FontCollection, FontMgr};
66
use state::node::NodeState;
77
use std::{

renderer/src/renderer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use dioxus_native_core::real_dom::{Node, NodeType};
2-
use layers_engine::{NodeArea, NodeData};
2+
use layers::{NodeArea, NodeData};
33
use skia_safe::{
44
textlayout::{FontCollection, ParagraphBuilder, ParagraphStyle, TextStyle},
55
utils::text_utils::Align,

renderer/src/work_loop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use dioxus_html::{
99
};
1010
use dioxus_native_core::real_dom::{Node, NodeType};
1111
use enumset::enum_set;
12-
use layers_engine::{Layers, NodeArea, NodeData, RenderData};
13-
use layout_engine::calculate_node;
12+
use layers::{Layers, NodeArea, NodeData, RenderData};
13+
use layout::calculate_node;
1414
use skia_safe::{textlayout::FontCollection, Canvas, Color};
1515
use state::node::{NodeState, Size};
1616
use std::{collections::HashMap, ops::Index, sync::Arc};

0 commit comments

Comments
 (0)