# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "tylax"
version = "0.3.4"
build = false
exclude = [
    "web/**/*",
    "tools/**/*",
    ".github/**/*",
    "pkg/**/*",
    "examples/**/*",
    "Dockerfile",
    "docker-compose.yml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tylax - High-performance bidirectional LaTeX ↔ Typst converter"
readme = "README.md"
keywords = [
    "latex",
    "typst",
    "converter",
    "math",
    "wasm",
]
categories = [
    "text-processing",
    "wasm",
    "command-line-utilities",
]
license = "Apache-2.0"
repository = "https://github.com/scipenai/tylax"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[package.metadata.wasm-pack.profile.dev]
wasm-opt = false

[features]
cli = ["dep:clap"]
data-loading = [
    "dep:serde",
    "dep:serde_json",
    "dep:serde_yaml",
    "dep:csv",
    "dep:toml",
]
default = ["cli"]
wasm = [
    "dep:wasm-bindgen",
    "dep:console_error_panic_hook",
    "dep:serde",
    "dep:serde-wasm-bindgen",
]

[lib]
name = "tylax"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "t2l"
path = "src/bin/t2l.rs"

[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4.4"
features = ["derive"]
optional = true

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.csv]
version = "1.3"
optional = true

[dependencies.fxhash]
version = "0.2"

[dependencies.indexmap]
version = "2.2"

[dependencies.lazy_static]
version = "1.4"

[dependencies.mitex]
version = "0.2"

[dependencies.mitex-parser]
version = "0.2"

[dependencies.mitex-spec]
version = "0.2"

[dependencies.mitex-spec-gen]
version = "0.2"

[dependencies.phf]
version = "0.11"
features = ["macros"]

[dependencies.regex]
version = "1.10"

[dependencies.rowan]
version = "0.15"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.typst-syntax]
version = "0.14"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dev-dependencies.pretty_assertions]
version = "1.4"

[profile.dev]
opt-level = 0
debug = 2

[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
strip = true

[profile.release-wasm]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
inherits = "release"
strip = true

[profile.wasm-release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
inherits = "release"
strip = true
