From 354c96dc94d172caab5d3c01fbb79ab529846022 Mon Sep 17 00:00:00 2001 From: Jenifer Champagne Date: Sat, 16 Mar 2024 13:52:16 -0400 Subject: [PATCH] Rename folders. --- Cargo.toml | 6 +++--- {html2rust => cli/html2rust}/Cargo.toml | 0 {html2rust => cli/html2rust}/src/args.rs | 0 {html2rust => cli/html2rust}/src/main.rs | 0 {html-codegen => lib}/Cargo.toml | 2 +- {html-codegen => lib}/src/fragment.rs | 0 {html-codegen => lib}/src/html.rs | 0 {html-codegen => lib}/src/html_escaping.rs | 0 {html-codegen => lib}/src/lib.rs | 0 {html-codegen => lib}/src/numbers.rs | 0 {html-codegen => lib}/src/render.rs | 0 {html-codegen => lib}/src/simple_element.rs | 0 {html-codegen => lib}/src/text_element.rs | 0 {html-codegen-macros => macros}/Cargo.toml | 2 +- {html-codegen-macros => macros}/src/child.rs | 0 {html-codegen-macros => macros}/src/children.rs | 0 {html-codegen-macros => macros}/src/element.rs | 0 {html-codegen-macros => macros}/src/element_attribute.rs | 0 {html-codegen-macros => macros}/src/element_attributes.rs | 0 {html-codegen-macros => macros}/src/function_component.rs | 0 {html-codegen-macros => macros}/src/lib.rs | 0 {html-codegen-macros => macros}/src/tags.rs | 0 {html-codegen-macros => macros}/tests/html.rs | 0 tests/Cargo.toml | 2 +- 24 files changed, 6 insertions(+), 6 deletions(-) rename {html2rust => cli/html2rust}/Cargo.toml (100%) rename {html2rust => cli/html2rust}/src/args.rs (100%) rename {html2rust => cli/html2rust}/src/main.rs (100%) rename {html-codegen => lib}/Cargo.toml (88%) rename {html-codegen => lib}/src/fragment.rs (100%) rename {html-codegen => lib}/src/html.rs (100%) rename {html-codegen => lib}/src/html_escaping.rs (100%) rename {html-codegen => lib}/src/lib.rs (100%) rename {html-codegen => lib}/src/numbers.rs (100%) rename {html-codegen => lib}/src/render.rs (100%) rename {html-codegen => lib}/src/simple_element.rs (100%) rename {html-codegen => lib}/src/text_element.rs (100%) rename {html-codegen-macros => macros}/Cargo.toml (91%) rename {html-codegen-macros => macros}/src/child.rs (100%) rename {html-codegen-macros => macros}/src/children.rs (100%) rename {html-codegen-macros => macros}/src/element.rs (100%) rename {html-codegen-macros => macros}/src/element_attribute.rs (100%) rename {html-codegen-macros => macros}/src/element_attributes.rs (100%) rename {html-codegen-macros => macros}/src/function_component.rs (100%) rename {html-codegen-macros => macros}/src/lib.rs (100%) rename {html-codegen-macros => macros}/src/tags.rs (100%) rename {html-codegen-macros => macros}/tests/html.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index eb64670..e6d2086 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [workspace] resolver = "2" members = [ - "html-codegen", - "html-codegen-macros", + "lib", + "macros", "tests", - "html2rust", + "cli/html2rust", ] diff --git a/html2rust/Cargo.toml b/cli/html2rust/Cargo.toml similarity index 100% rename from html2rust/Cargo.toml rename to cli/html2rust/Cargo.toml diff --git a/html2rust/src/args.rs b/cli/html2rust/src/args.rs similarity index 100% rename from html2rust/src/args.rs rename to cli/html2rust/src/args.rs diff --git a/html2rust/src/main.rs b/cli/html2rust/src/main.rs similarity index 100% rename from html2rust/src/main.rs rename to cli/html2rust/src/main.rs diff --git a/html-codegen/Cargo.toml b/lib/Cargo.toml similarity index 88% rename from html-codegen/Cargo.toml rename to lib/Cargo.toml index dd3c7ca..48628d8 100644 --- a/html-codegen/Cargo.toml +++ b/lib/Cargo.toml @@ -14,7 +14,7 @@ license = "MIT" [dependencies] ordered_hash_map = "0.4.0" -html-codegen-macros = { path = "../html-codegen-macros", version = "0.1.0" } +html-codegen-macros = { path = "../macros", version = "0.1.0" } [dev-dependencies] pretty_assertions = "1.4" diff --git a/html-codegen/src/fragment.rs b/lib/src/fragment.rs similarity index 100% rename from html-codegen/src/fragment.rs rename to lib/src/fragment.rs diff --git a/html-codegen/src/html.rs b/lib/src/html.rs similarity index 100% rename from html-codegen/src/html.rs rename to lib/src/html.rs diff --git a/html-codegen/src/html_escaping.rs b/lib/src/html_escaping.rs similarity index 100% rename from html-codegen/src/html_escaping.rs rename to lib/src/html_escaping.rs diff --git a/html-codegen/src/lib.rs b/lib/src/lib.rs similarity index 100% rename from html-codegen/src/lib.rs rename to lib/src/lib.rs diff --git a/html-codegen/src/numbers.rs b/lib/src/numbers.rs similarity index 100% rename from html-codegen/src/numbers.rs rename to lib/src/numbers.rs diff --git a/html-codegen/src/render.rs b/lib/src/render.rs similarity index 100% rename from html-codegen/src/render.rs rename to lib/src/render.rs diff --git a/html-codegen/src/simple_element.rs b/lib/src/simple_element.rs similarity index 100% rename from html-codegen/src/simple_element.rs rename to lib/src/simple_element.rs diff --git a/html-codegen/src/text_element.rs b/lib/src/text_element.rs similarity index 100% rename from html-codegen/src/text_element.rs rename to lib/src/text_element.rs diff --git a/html-codegen-macros/Cargo.toml b/macros/Cargo.toml similarity index 91% rename from html-codegen-macros/Cargo.toml rename to macros/Cargo.toml index ccf6cf1..b1a1926 100644 --- a/html-codegen-macros/Cargo.toml +++ b/macros/Cargo.toml @@ -23,5 +23,5 @@ proc-macro-error = "1.0" ordered_hash_map = "0.4.0" [dev-dependencies] -html-codegen = { path = "../html-codegen", version = "*" } +html-codegen = { path = "../lib", version = "*" } pretty_assertions = "1.4" diff --git a/html-codegen-macros/src/child.rs b/macros/src/child.rs similarity index 100% rename from html-codegen-macros/src/child.rs rename to macros/src/child.rs diff --git a/html-codegen-macros/src/children.rs b/macros/src/children.rs similarity index 100% rename from html-codegen-macros/src/children.rs rename to macros/src/children.rs diff --git a/html-codegen-macros/src/element.rs b/macros/src/element.rs similarity index 100% rename from html-codegen-macros/src/element.rs rename to macros/src/element.rs diff --git a/html-codegen-macros/src/element_attribute.rs b/macros/src/element_attribute.rs similarity index 100% rename from html-codegen-macros/src/element_attribute.rs rename to macros/src/element_attribute.rs diff --git a/html-codegen-macros/src/element_attributes.rs b/macros/src/element_attributes.rs similarity index 100% rename from html-codegen-macros/src/element_attributes.rs rename to macros/src/element_attributes.rs diff --git a/html-codegen-macros/src/function_component.rs b/macros/src/function_component.rs similarity index 100% rename from html-codegen-macros/src/function_component.rs rename to macros/src/function_component.rs diff --git a/html-codegen-macros/src/lib.rs b/macros/src/lib.rs similarity index 100% rename from html-codegen-macros/src/lib.rs rename to macros/src/lib.rs diff --git a/html-codegen-macros/src/tags.rs b/macros/src/tags.rs similarity index 100% rename from html-codegen-macros/src/tags.rs rename to macros/src/tags.rs diff --git a/html-codegen-macros/tests/html.rs b/macros/tests/html.rs similarity index 100% rename from html-codegen-macros/tests/html.rs rename to macros/tests/html.rs diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 4edb3f1..3001ae3 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/JenChampagne/html-codegen" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -html-codegen = { path = "../html-codegen" } +html-codegen = { path = "../lib" } [dev-dependencies] pretty_assertions = "1.4"