From 442c01c86c5c1605698365fbe00dd4afa0abf472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Cabrera?= Date: Tue, 2 Jul 2024 10:16:44 -0400 Subject: [PATCH] Rename test-macros and config crates (#677) This commit is a minor clean-up to rename the `test-macros` and `config` crates directories so that they adhere to the naming convention of the rest of the crates. This is simply a mechanical change. Additionally, the `publish = false` property is added to crates that are not mean to be published. --- Cargo.toml | 6 +++--- crates/{javy-config => config}/Cargo.toml | 1 + crates/{javy-config => config}/README.md | 0 crates/{javy-config => config}/src/lib.rs | 0 crates/javy/Cargo.toml | 2 +- crates/{javy-test-macros => test-macros}/Cargo.toml | 1 + crates/{javy-test-macros => test-macros}/README.md | 0 crates/{javy-test-macros => test-macros}/src/lib.rs | 0 8 files changed, 6 insertions(+), 4 deletions(-) rename crates/{javy-config => config}/Cargo.toml (94%) rename crates/{javy-config => config}/README.md (100%) rename crates/{javy-config => config}/src/lib.rs (100%) rename crates/{javy-test-macros => test-macros}/Cargo.toml (95%) rename crates/{javy-test-macros => test-macros}/README.md (100%) rename crates/{javy-test-macros => test-macros}/src/lib.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 3f9684db..793d02e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,8 +6,8 @@ members = [ "crates/apis", "crates/core", "crates/cli", - "crates/javy-test-macros", - "crates/javy-config", + "crates/test-macros", + "crates/config", ] resolver = "2" @@ -25,7 +25,7 @@ wasi-common = "19" anyhow = "1.0" once_cell = "1.19" bitflags = "2.5.0" -javy-config = { path = "crates/javy-config" } +javy-config = { path = "crates/config" } javy = { path = "crates/javy", version = "3.0.0" } [profile.release] diff --git a/crates/javy-config/Cargo.toml b/crates/config/Cargo.toml similarity index 94% rename from crates/javy-config/Cargo.toml rename to crates/config/Cargo.toml index 1e400f50..15b268f8 100644 --- a/crates/javy-config/Cargo.toml +++ b/crates/config/Cargo.toml @@ -4,6 +4,7 @@ version.workspace = true authors.workspace = true edition.workspace = true license.workspace = true +publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/javy-config/README.md b/crates/config/README.md similarity index 100% rename from crates/javy-config/README.md rename to crates/config/README.md diff --git a/crates/javy-config/src/lib.rs b/crates/config/src/lib.rs similarity index 100% rename from crates/javy-config/src/lib.rs rename to crates/config/src/lib.rs diff --git a/crates/javy/Cargo.toml b/crates/javy/Cargo.toml index 6451544e..a8257dcb 100644 --- a/crates/javy/Cargo.toml +++ b/crates/javy/Cargo.toml @@ -26,7 +26,7 @@ fastrand = "2.1.0" simd-json = { version = "0.13.10", optional = true, default-features = false, features = ["big-int-as-float", "serde_impl"] } [dev-dependencies] -javy-test-macros = { path = "../javy-test-macros/" } +javy-test-macros = { path = "../test-macros/" } [features] export_alloc_fns = [] diff --git a/crates/javy-test-macros/Cargo.toml b/crates/test-macros/Cargo.toml similarity index 95% rename from crates/javy-test-macros/Cargo.toml rename to crates/test-macros/Cargo.toml index a52c0766..e3721f3a 100644 --- a/crates/javy-test-macros/Cargo.toml +++ b/crates/test-macros/Cargo.toml @@ -4,6 +4,7 @@ version.workspace = true authors.workspace = true edition.workspace = true license.workspace = true +publish = false [lib] proc-macro = true diff --git a/crates/javy-test-macros/README.md b/crates/test-macros/README.md similarity index 100% rename from crates/javy-test-macros/README.md rename to crates/test-macros/README.md diff --git a/crates/javy-test-macros/src/lib.rs b/crates/test-macros/src/lib.rs similarity index 100% rename from crates/javy-test-macros/src/lib.rs rename to crates/test-macros/src/lib.rs