Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(core): introduce wren-core-base module to collect the common structs and utilities #1003

Merged
merged 7 commits into from
Dec 24, 2024

Conversation

goldmedal
Copy link
Contributor

@goldmedal goldmedal commented Dec 22, 2024

close #1000

Description

To reduce the maintenance cost of the manifest struct, I tried to unify the structs for both Rust and Python. The new module, wren-core-base, collects the common utilities or structs for the wren core-related module.

wren-manifest-macro Module

All the manifest struct is defined using Rust macro (powered by proc_macro). If python-binding feature is enabled, the pyo3 attribute will be added for them and the required functions.
wren-manifest-macro is a proc-macro library. Only be used by wren-core-base.

wren-core-base Module

I tried to minimize the dependency of the base module. It should only use serde-related or binding-related crates. The DataFusion-related behaviors shouldn't be defined here.

@github-actions github-actions bot added documentation Improvements or additions to documentation core dependencies Pull requests that update a dependency file rust Pull requests that update Rust code python Pull requests that update Python code labels Dec 22, 2024
@goldmedal goldmedal marked this pull request as ready for review December 22, 2024 22:23
@goldmedal goldmedal merged commit c12b4cd into Canner:main Dec 24, 2024
13 checks passed
@goldmedal goldmedal deleted the chore/split-manifest branch December 24, 2024 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation python Pull requests that update Python code rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify the Manifest and PyManifest
2 participants