-
-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: restructure codebase as monorepo #12
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,11 @@ | ||
| [package] | ||
| name = "djc_core_html_parser" | ||
| version = "1.0.3" | ||
| edition = "2021" | ||
| [workspace] | ||
| members = [ | ||
| "crates/djc-core", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. djc-core is the public API of this project. It's what will get exposed to Python. Inside it, it just re-exports other Rust crates. |
||
| "crates/djc-html-transformer", | ||
| ] | ||
| resolver = "2" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
| [lib] | ||
| name = "djc_core_html_parser" | ||
| crate-type = ["cdylib"] | ||
|
|
||
| [dependencies] | ||
| [workspace.dependencies] | ||
| pyo3 = { version = "0.27.0", features = ["extension-module"] } | ||
| quick-xml = "0.38.3" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [package] | ||
| name = "djc-core" | ||
| version = "1.1.0" | ||
| edition = "2021" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
| [lib] | ||
| name = "djc_core" | ||
| crate-type = ["cdylib"] | ||
|
|
||
| [dependencies] | ||
| djc-html-transformer = { path = "../djc-html-transformer" } | ||
| pyo3 = { workspace = true } | ||
| quick-xml = { workspace = true } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| use djc_html_transformer::set_html_attributes; | ||
| use pyo3::prelude::*; | ||
|
|
||
| /// A Python module implemented in Rust for high-performance transformations. | ||
| #[pymodule] | ||
| fn djc_core(m: &Bound<'_, PyModule>) -> PyResult<()> { | ||
| m.add_function(wrap_pyfunction!(set_html_attributes, m)?)?; | ||
| Ok(()) | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| [package] | ||
| name = "djc-html-transformer" | ||
| version = "1.0.3" | ||
| edition = "2021" | ||
|
|
||
| [dependencies] | ||
| pyo3 = { workspace = true } | ||
| quick-xml = { workspace = true } |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also means that the package that django-components will depend on will be renamed to djc-core. But the public API of djc-core remains the same.