# 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 = "2024"
rust-version = "1.91"
name = "mlux"
version = "2.3.1"
authors = ["saka1"]
build = "build.rs"
exclude = [
    "docs/",
    "fuzz/",
    "tests/",
    "fonts/NotoSansJP-*.ttf",
    "CLAUDE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A rich Markdown viewer for modern terminals"
readme = "README.md"
keywords = [
    "markdown",
    "typst",
    "terminal",
    "viewer",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/saka1/mlux"

[features]
default = ["embed-fonts"]
embed-fonts = []

[lib]
name = "mlux"
path = "src/lib.rs"

[[bin]]
name = "mlux"
path = "src/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.base64]
version = "0.22"

[dependencies.bincode]
version = "2"
features = ["serde"]

[dependencies.blake3]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.crossterm]
version = "0.28"
features = ["use-dev-tty"]

[dependencies.env_filter]
version = "1"

[dependencies.git2]
version = "0.20"
default-features = false

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.mermaid-rs-renderer]
version = "0.2"
default-features = false

[dependencies.mitex]
version = "0.2"

[dependencies.nix]
version = "0.29"
features = [
    "poll",
    "process",
    "signal",
]

[dependencies.notify]
version = "8"

[dependencies.open]
version = "5"

[dependencies.png]
version = "0.18"

[dependencies.pulldown-cmark]
version = "0.12"

[dependencies.regex]
version = "1"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.tempfile]
version = "3.27"

[dependencies.typst]
version = "0.14"

[dependencies.typst-kit]
version = "0.14"
features = ["embed-fonts"]
default-features = false

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

[dependencies.ureq]
version = "3"

[dependencies.zstd]
version = "0.13"

[build-dependencies.zstd]
version = "0.13"

[target.'cfg(target_os = "linux")'.dependencies.landlock]
version = "0.4"

[lints.clippy]
single_range_in_vec_init = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[profile.release]
lto = "thin"
panic = "abort"
strip = "debuginfo"
