[package]
edition = "2024"
rust-version = "1.85"
name = "formel"
version = "0.1.0"
authors = ["Manuel Reinhardt <manuel.jr16@gmail.com>"]
build = "build.rs"
exclude = [
"web/",
"docs/",
".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lay out mathematical formulas from MathML with a font's OpenType MATH table"
readme = "README.md"
keywords = [
"mathml",
"typesetting",
"math",
"formula",
"svg",
]
categories = [
"text-processing",
"graphics",
"wasm",
]
license = "MIT"
repository = "https://github.com/manuel-rhdt/formel"
[features]
mathml_parser = ["quick-xml"]
svg = ["dep:svg"]
[lib]
name = "formel"
path = "src/lib.rs"
[[example]]
name = "render_svg"
path = "examples/render_svg.rs"
required-features = [
"mathml_parser",
"svg",
]
[[test]]
name = "font_tests"
path = "tests/font_tests.rs"
[[test]]
name = "host_api"
path = "tests/host_api.rs"
[[test]]
name = "lib"
path = "tests/lib.rs"
[[test]]
name = "speech"
path = "tests/speech.rs"
[[test]]
name = "tex_oracle"
path = "tests/tex_oracle.rs"
[[test]]
name = "util"
path = "tests/util.rs"
[dependencies.bitflags]
version = "2"
[dependencies.quick-xml]
version = "0.42"
optional = true
[dependencies.rustybuzz]
version = "0.20"
[dependencies.svg]
version = "0.18"
optional = true
[dev-dependencies.quickcheck]
version = "1"
default-features = false
[build-dependencies.serde]
version = "1.0.110"
[build-dependencies.serde_json]
version = "1.0.53"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true