[package]
edition = "2021"
rust-version = "1.85"
name = "mathlex"
version = "0.3.3"
authors = ["Christian C. Berclaz"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Mathematical expression parser for LaTeX and plain text notation, producing a language-agnostic AST"
homepage = "https://github.com/ChrisGVE/mathlex"
documentation = "https://docs.rs/mathlex"
readme = "README.md"
keywords = [
"math",
"parser",
"latex",
"ast",
"expression",
]
categories = [
"parsing",
"mathematics",
"science",
]
license = "MIT"
repository = "https://github.com/ChrisGVE/mathlex"
[features]
default = []
ffi = ["swift-bridge"]
serde = [
"dep:serde",
"dep:serde_json",
]
[lib]
name = "mathlex"
crate-type = [
"staticlib",
"cdylib",
"lib",
]
path = "src/lib.rs"
[[test]]
name = "latex_property_tests"
path = "tests/latex_property_tests.rs"
[[test]]
name = "lenient_parsing_tests"
path = "tests/lenient_parsing_tests.rs"
[[test]]
name = "lib_tests"
path = "tests/lib_tests.rs"
[[test]]
name = "metadata_tests"
path = "tests/metadata_tests.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[test]]
name = "real_world_examples"
path = "tests/real_world_examples.rs"
[[test]]
name = "roundtrip_tests"
path = "tests/roundtrip_tests.rs"
[[test]]
name = "serde_roundtrip"
path = "tests/serde_roundtrip.rs"
[[test]]
name = "serialization_precedence_tests"
path = "tests/serialization_precedence_tests.rs"
[[test]]
name = "set_theory_tests"
path = "tests/set_theory_tests.rs"
[[test]]
name = "test_derivative_standard_notation"
path = "tests/test_derivative_standard_notation.rs"
[[test]]
name = "test_plus_minus"
path = "tests/test_plus_minus.rs"
[[test]]
name = "test_task24"
path = "tests/test_task24.rs"
[[test]]
name = "vector_calculus_tests"
path = "tests/vector_calculus_tests.rs"
[[bench]]
name = "benchmarks"
path = "benches/benchmarks.rs"
harness = false
[dependencies.ordered-float]
version = "4"
features = ["serde"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.swift-bridge]
version = "0.1"
optional = true
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.proptest]
version = "1.5"
[build-dependencies.swift-bridge-build]
version = "0.1"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1