Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ members = [
"crates/ratex-wasm",
"crates/ratex-pdf",
"crates/ratex-unicode-font",
"crates/ratex-py",
]

[workspace.package]
Expand All @@ -36,6 +37,7 @@ ratex-layout = { path = "crates/ratex-layout", version = "0.1.11" }
ratex-katex-fonts = { path = "crates/ratex-katex-fonts", version = "0.1.11" }
ratex-font-loader = { path = "crates/ratex-font-loader", version = "0.1.11" }
ratex-cairo = { path = "crates/ratex-cairo", version = "0.1.11" }
ratex-render = { path = "crates/ratex-render", version = "0.1.11" }
ratex-svg = { path = "crates/ratex-svg", version = "0.1.11" }
ratex-pdf = { path = "crates/ratex-pdf", version = "0.1.11" }
ratex-unicode-font = { path = "crates/ratex-unicode-font", version = "0.1.11" }
Expand Down
33 changes: 33 additions & 0 deletions crates/ratex-py/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "ratex-py"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
description = "Python bindings for RaTeX math rendering (PyO3 / maturin)"

[lib]
name = "ratex_py"
crate-type = ["cdylib"]

[features]
default = ["embed-fonts"]
## Required by maturin / PyO3 when building a Python extension module.
extension-module = ["pyo3/extension-module"]
## Bundle KaTeX TTF fonts so no external font-dir is needed at runtime.
embed-fonts = [
"ratex-svg/embed-fonts",
"ratex-render/embed-fonts",
]

[dependencies]
pyo3 = { version = "0.28", features = ["auto-initialize"] }
ratex-types = { workspace = true }
ratex-parser = { workspace = true }
ratex-layout = { workspace = true }
ratex-svg = { workspace = true, features = ["standalone"] }
ratex-render = { workspace = true }
ratex-pdf = { workspace = true }
serde_json = { workspace = true }
Loading