Skip to content

Commit

Permalink
Fix macro_rules! export issue by removing proc-macro flag
Browse files Browse the repository at this point in the history
  • Loading branch information
khushishukla2813 committed Mar 4, 2025
1 parent f1d73bf commit 4b079a6
Show file tree
Hide file tree
Showing 6 changed files with 226 additions and 183 deletions.
7 changes: 7 additions & 0 deletions datafusion/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
// specific language governing permissions and limitations
// under the License.

// Imported the macro from the macros crate
use datafusion_macros::user_doc_cfg;
user_doc_cfg!();




#![doc(
html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg",
html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
Expand Down
5 changes: 2 additions & 3 deletions datafusion/macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ workspace = true

[lib]
name = "datafusion_macros"
# lib.rs to be re-added in the future
path = "src/user_doc.rs"
proc-macro = true
path = "src/lib.rs" # Change path to lib.rs


[dependencies]
datafusion-expr = { workspace = true }
Expand Down
10 changes: 10 additions & 0 deletions datafusion/macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Imported the macro from the macros crate
use datafusion_macros::user_doc_cfg;

// macro for documentation attributes
user_doc_cfg!();

// Include the user_doc module
pub mod user_doc;


10 changes: 0 additions & 10 deletions datafusion/macros/src/macros.rs

This file was deleted.

Loading

0 comments on commit 4b079a6

Please sign in to comment.