diff --git a/CHANGELOG.md b/CHANGELOG.md index 7260c4a466ed..1d073e393fc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ **Internal changes**: +- Renamed `prql-compiler-macros` to `prqlc-macros` for consistency with other + crates (@max-sixty, #4565) + **New Contributors**: ## 0.12.2 — 2024-06-10 diff --git a/Cargo.lock b/Cargo.lock index b48a1d2a93f7..8bfc54f366ff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3029,14 +3029,6 @@ dependencies = [ "prqlc", ] -[[package]] -name = "prql-compiler-macros" -version = "0.12.3" -dependencies = [ - "prqlc", - "syn 2.0.66", -] - [[package]] name = "prql-java" version = "0.12.3" @@ -3136,6 +3128,14 @@ dependencies = [ "wasm-bindgen-test", ] +[[package]] +name = "prqlc-macros" +version = "0.12.3" +dependencies = [ + "prqlc", + "syn 2.0.66", +] + [[package]] name = "prqlc-parser" version = "0.12.3" diff --git a/Cargo.toml b/Cargo.toml index 702a48e35891..1e51f9ab0045 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ members = [ "prqlc/bindings/js", "prqlc/bindings/prqlc-c", "prqlc/bindings/prqlc-python", - "prqlc/prql-compiler-macros", + "prqlc/prqlc-macros", "prqlc/prql-compiler", "prqlc/prqlc-ast", "prqlc/prqlc-parser", diff --git a/prqlc/Taskfile.yaml b/prqlc/Taskfile.yaml index 5b001d36ee16..893b65c334ba 100644 --- a/prqlc/Taskfile.yaml +++ b/prqlc/Taskfile.yaml @@ -7,7 +7,7 @@ includes: vars: packages_core: -p prqlc-ast -p prqlc-parser -p prqlc - packages_addon: -p prql-compiler-macros -p compile-files + packages_addon: -p prqlc-macros -p compile-files packages_bindings: -p prql -p prql-java -p prqlc-js -p prqlc-c -p prqlc-python tasks: diff --git a/prqlc/prql-compiler-macros/Cargo.toml b/prqlc/prqlc-macros/Cargo.toml similarity index 91% rename from prqlc/prql-compiler-macros/Cargo.toml rename to prqlc/prqlc-macros/Cargo.toml index 6455b405ddf4..af630f96d47a 100644 --- a/prqlc/prql-compiler-macros/Cargo.toml +++ b/prqlc/prqlc-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] description = "Macros for PRQL compilation at build time" -name = "prql-compiler-macros" +name = "prqlc-macros" edition.workspace = true license.workspace = true @@ -14,7 +14,7 @@ proc_macro = true test = false [dependencies] -prqlc = {path = "../prqlc", default-features = false, version = "0.12.3" } +prqlc = {path = "../prqlc", default-features = false, version = "0.12.3"} syn = "2.0.66" [package.metadata.release] diff --git a/prqlc/prql-compiler-macros/src/lib.rs b/prqlc/prqlc-macros/src/lib.rs similarity index 100% rename from prqlc/prql-compiler-macros/src/lib.rs rename to prqlc/prqlc-macros/src/lib.rs diff --git a/prqlc/prqlc/src/lib.rs b/prqlc/prqlc/src/lib.rs index 7266f51d1a3c..709a72ba36df 100644 --- a/prqlc/prqlc/src/lib.rs +++ b/prqlc/prqlc/src/lib.rs @@ -49,7 +49,7 @@ //! //! - Compile PRQL queries to SQL at build time. //! -//! For inline strings, use the `prql-compiler-macros` crate; for example: +//! For inline strings, use the `prqlc-macros` crate; for example: //! ```ignore //! let sql: &str = prql_to_sql!("from albums | select {title, artist_id}"); //! ```