From a303a2dae5d9709683383ad7817409c6f4e652e0 Mon Sep 17 00:00:00 2001 From: Shark Date: Mon, 6 May 2024 21:58:24 +0200 Subject: [PATCH] rename gosub_rendering to gosub_render_utils, so it is less confusing --- Cargo.toml | 2 +- crates/gosub_bindings/Cargo.toml | 2 +- crates/gosub_bindings/src/wrapper/text.rs | 2 +- crates/{gosub_rendering => gosub_render_utils}/Cargo.toml | 0 crates/{gosub_rendering => gosub_render_utils}/src/layout.rs | 0 crates/{gosub_rendering => gosub_render_utils}/src/lib.rs | 0 crates/{gosub_rendering => gosub_render_utils}/src/position.rs | 0 .../{gosub_rendering => gosub_render_utils}/src/render_tree.rs | 0 .../src/render_tree/properties.rs | 0 .../src/render_tree/text.rs | 0 .../src/render_tree/util.rs | 0 crates/{gosub_rendering => gosub_render_utils}/src/style.rs | 0 .../{gosub_rendering => gosub_render_utils}/src/style/parse.rs | 0 .../src/style/parse_properties.rs | 0 crates/gosub_renderer/Cargo.toml | 2 +- 15 files changed, 4 insertions(+), 4 deletions(-) rename crates/{gosub_rendering => gosub_render_utils}/Cargo.toml (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/layout.rs (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/lib.rs (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/position.rs (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/render_tree.rs (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/render_tree/properties.rs (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/render_tree/text.rs (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/render_tree/util.rs (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/style.rs (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/style/parse.rs (100%) rename crates/{gosub_rendering => gosub_render_utils}/src/style/parse_properties.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 60ead6af3..654b176a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,7 +46,7 @@ gosub_css3 = { path = "./crates/gosub_css3", features = [] } gosub_styling = { path = "./crates/gosub_styling", features = [] } gosub_jsapi = { path = "./crates/gosub_jsapi", features = [] } gosub_testing = { path = "./crates/gosub_testing", features = [] } -gosub_rendering = { path = "./crates/gosub_rendering", features = [] } +gosub_rendering = { path = "crates/gosub_render_utils", features = [] } gosub_renderer = { path = "./crates/gosub_renderer", features = [] } serde = { version = "1.0", features = ["derive"] } serde_derive = "1.0" diff --git a/crates/gosub_bindings/Cargo.toml b/crates/gosub_bindings/Cargo.toml index 2d5382204..e6d390d72 100644 --- a/crates/gosub_bindings/Cargo.toml +++ b/crates/gosub_bindings/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" [dependencies] gosub_shared = { path = "../gosub_shared" } -gosub_rendering = { path = "../gosub_rendering" } +gosub_rendering = { path = "../gosub_render_utils" } gosub_html5 = { path = "../gosub_html5" } [lib] diff --git a/crates/gosub_bindings/src/wrapper/text.rs b/crates/gosub_bindings/src/wrapper/text.rs index 37b3d38df..78c89312b 100644 --- a/crates/gosub_bindings/src/wrapper/text.rs +++ b/crates/gosub_bindings/src/wrapper/text.rs @@ -2,7 +2,7 @@ use gosub_rendering::render_tree::text::TextNode; use std::ffi::c_char; use std::ffi::CString; -/// This is a C-friendly wrapper around gosub_rendering::rendertree::text::TextNode +/// This is a C-friendly wrapper around gosub_render_utils::rendertree::text::TextNode /// that converts Rust Strings to owned pointers to pass to the C API. #[repr(C)] pub struct CTextNode { diff --git a/crates/gosub_rendering/Cargo.toml b/crates/gosub_render_utils/Cargo.toml similarity index 100% rename from crates/gosub_rendering/Cargo.toml rename to crates/gosub_render_utils/Cargo.toml diff --git a/crates/gosub_rendering/src/layout.rs b/crates/gosub_render_utils/src/layout.rs similarity index 100% rename from crates/gosub_rendering/src/layout.rs rename to crates/gosub_render_utils/src/layout.rs diff --git a/crates/gosub_rendering/src/lib.rs b/crates/gosub_render_utils/src/lib.rs similarity index 100% rename from crates/gosub_rendering/src/lib.rs rename to crates/gosub_render_utils/src/lib.rs diff --git a/crates/gosub_rendering/src/position.rs b/crates/gosub_render_utils/src/position.rs similarity index 100% rename from crates/gosub_rendering/src/position.rs rename to crates/gosub_render_utils/src/position.rs diff --git a/crates/gosub_rendering/src/render_tree.rs b/crates/gosub_render_utils/src/render_tree.rs similarity index 100% rename from crates/gosub_rendering/src/render_tree.rs rename to crates/gosub_render_utils/src/render_tree.rs diff --git a/crates/gosub_rendering/src/render_tree/properties.rs b/crates/gosub_render_utils/src/render_tree/properties.rs similarity index 100% rename from crates/gosub_rendering/src/render_tree/properties.rs rename to crates/gosub_render_utils/src/render_tree/properties.rs diff --git a/crates/gosub_rendering/src/render_tree/text.rs b/crates/gosub_render_utils/src/render_tree/text.rs similarity index 100% rename from crates/gosub_rendering/src/render_tree/text.rs rename to crates/gosub_render_utils/src/render_tree/text.rs diff --git a/crates/gosub_rendering/src/render_tree/util.rs b/crates/gosub_render_utils/src/render_tree/util.rs similarity index 100% rename from crates/gosub_rendering/src/render_tree/util.rs rename to crates/gosub_render_utils/src/render_tree/util.rs diff --git a/crates/gosub_rendering/src/style.rs b/crates/gosub_render_utils/src/style.rs similarity index 100% rename from crates/gosub_rendering/src/style.rs rename to crates/gosub_render_utils/src/style.rs diff --git a/crates/gosub_rendering/src/style/parse.rs b/crates/gosub_render_utils/src/style/parse.rs similarity index 100% rename from crates/gosub_rendering/src/style/parse.rs rename to crates/gosub_render_utils/src/style/parse.rs diff --git a/crates/gosub_rendering/src/style/parse_properties.rs b/crates/gosub_render_utils/src/style/parse_properties.rs similarity index 100% rename from crates/gosub_rendering/src/style/parse_properties.rs rename to crates/gosub_render_utils/src/style/parse_properties.rs diff --git a/crates/gosub_renderer/Cargo.toml b/crates/gosub_renderer/Cargo.toml index 9c010305b..4f0e67eb8 100644 --- a/crates/gosub_renderer/Cargo.toml +++ b/crates/gosub_renderer/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -gosub_rendering = { path = "../gosub_rendering" } +gosub_rendering = { path = "../gosub_render_utils" } gosub_html5 = { path = "../gosub_html5" } gosub_shared = { path = "../gosub_shared" } gosub_styling = { path = "../gosub_styling" }