# 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"
rust-version = "1.80"
name = "md-viewer"
version = "0.1.11"
build = false
exclude = [
    "docs/devlog/*",
    "screenshots/*",
    ".claude/*",
    "crates/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, lightweight markdown viewer for Linux with tabs, file explorer, and live reload"
homepage = "https://github.com/aydiler/md-viewer"
documentation = "https://github.com/aydiler/md-viewer#readme"
readme = "README.md"
keywords = [
    "markdown",
    "viewer",
    "egui",
    "linux",
    "desktop",
]
categories = [
    "command-line-utilities",
    "gui",
    "visualization",
]
license = "MIT"
repository = "https://github.com/aydiler/md-viewer"

[features]
default = []

[[bin]]
name = "md-viewer"
path = "src/main.rs"

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

[dependencies.eframe]
version = "0.33"
features = [
    "default_fonts",
    "glow",
    "wayland",
    "x11",
    "persistence",
    "accesskit",
]
default-features = false

[dependencies.egui]
version = "0.33"
features = ["accesskit"]

[dependencies.egui_commonmark_extended]
version = "0.23.0"
features = [
    "better_syntax_highlighting",
    "svg",
    "svg_text",
    "load-images",
    "fetch",
    "mermaid",
    "math",
]

[dependencies.env_logger]
version = "0.11"

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
    "gif",
]
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.mimalloc]
version = "0.1"

[dependencies.notify]
version = "6.1"

[dependencies.notify-debouncer-mini]
version = "0.4"

[dependencies.regex]
version = "1.12.2"

[dependencies.rfd]
version = "0.17"

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("mcp"))']

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

[profile.release-dev]
opt-level = 2
lto = "thin"
codegen-units = 4
inherits = "release"
