From 626f37cd0d40f2ef808533752ca20710e9234d12 Mon Sep 17 00:00:00 2001 From: Kould Date: Fri, 6 Dec 2024 23:12:37 +0800 Subject: [PATCH] chore: fix word (`macros`) --- Cargo.toml | 4 ++-- examples/hello_world.rs | 2 +- src/lib.rs | 4 ++-- src/optimizer/rule/implementation/{marcos.rs => macros.rs} | 0 src/optimizer/rule/implementation/mod.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename src/optimizer/rule/implementation/{marcos.rs => macros.rs} (100%) diff --git a/Cargo.toml b/Cargo.toml index 8216af38..3f3f8118 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,8 +23,8 @@ required-features = ["net"] doctest = false [features] -default = ["marcos"] -marcos = [] +default = ["macros"] +macros = [] net = ["dep:pgwire", "dep:async-trait", "dep:clap", "dep:env_logger", "dep:futures", "dep:log", "dep:tokio"] [[bench]] diff --git a/examples/hello_world.rs b/examples/hello_world.rs index 3812a22d..4237ab65 100644 --- a/examples/hello_world.rs +++ b/examples/hello_world.rs @@ -24,7 +24,7 @@ implement_from_tuple!( ) ); -#[cfg(feature = "marcos")] +#[cfg(feature = "macros")] fn main() -> Result<(), DatabaseError> { let database = DataBaseBuilder::path("./hello_world").build()?; diff --git a/src/lib.rs b/src/lib.rs index bbe53d48..c6f47c07 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,7 +63,7 @@ //! ) //! ); //! -//! #[cfg(feature = "marcos")] +//! #[cfg(feature = "macros")] //! fn main() -> Result<(), DatabaseError> { //! let database = DataBaseBuilder::path("./hello_world").build()?; //! @@ -103,7 +103,7 @@ pub mod errors; pub mod execution; pub mod expression; mod function; -#[cfg(feature = "marcos")] +#[cfg(feature = "macros")] pub mod macros; mod optimizer; pub mod parser; diff --git a/src/optimizer/rule/implementation/marcos.rs b/src/optimizer/rule/implementation/macros.rs similarity index 100% rename from src/optimizer/rule/implementation/marcos.rs rename to src/optimizer/rule/implementation/macros.rs diff --git a/src/optimizer/rule/implementation/mod.rs b/src/optimizer/rule/implementation/mod.rs index c4f14e1a..a511fe82 100644 --- a/src/optimizer/rule/implementation/mod.rs +++ b/src/optimizer/rule/implementation/mod.rs @@ -1,7 +1,7 @@ pub(crate) mod ddl; pub(crate) mod dml; pub(crate) mod dql; -pub(crate) mod marcos; +pub(crate) mod macros; use crate::errors::DatabaseError; use crate::optimizer::core::memo::GroupExpression;