mrk-cli 0.10.0

Render Markdown beautifully in the terminal: syntax highlighting, tables, themes, and Mermaid diagrams as images.
Documentation
# 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.92"
name = "mrk-cli"
version = "0.10.0"
build = "build.rs"
include = [
    "/src/**/*.rs",
    "/assets/fonts/*",
    "/build.rs",
    "/README.md",
    "/LICENSE",
    "/CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Render Markdown beautifully in the terminal: syntax highlighting, tables, themes, and Mermaid diagrams as images."
homepage = "https://github.com/vmeyet/mrk-cli"
documentation = "https://docs.rs/mrk-cli"
readme = "README.md"
keywords = [
    "markdown",
    "terminal",
    "mermaid",
    "cli",
    "renderer",
]
categories = [
    "command-line-utilities",
    "text-processing",
    "visualization",
]
license = "MIT"
repository = "https://github.com/vmeyet/mrk-cli"

[package.metadata.docs.rs]
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[features]
cli = [
    "dep:anyhow",
    "dep:base64",
    "dep:clap",
    "dep:clap_complete",
    "dep:clap_mangen",
    "dep:crossterm",
    "dep:png",
    "dep:roff",
    "dep:rustix",
    "dep:serde",
    "dep:shell-words",
    "dep:signal-hook",
    "dep:tempfile",
    "dep:toml",
]
default = ["cli"]

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

[[bin]]
name = "mrk"
path = "src/main.rs"
required-features = ["cli"]

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

[dependencies.base64]
version = "0.23"
optional = true

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

[dependencies.clap_complete]
version = "4.5"
optional = true

[dependencies.clap_mangen]
version = "0.3"
optional = true

[dependencies.comrak]
version = "0.55"
default-features = false

[dependencies.crossterm]
version = "0.29"
features = ["use-dev-tty"]
optional = true

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

[dependencies.png]
version = "0.18"
optional = true

[dependencies.resvg]
version = "0.48"
features = [
    "text",
    "memmap-fonts",
]
default-features = false

[dependencies.roff]
version = "1.1"
optional = true

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

[dependencies.shell-words]
version = "1.1"
optional = true

[dependencies.signal-hook]
version = "0.3"
optional = true

[dependencies.similar]
version = "2.7"

[dependencies.syntect]
version = "5.3"
features = [
    "parsing",
    "regex-onig",
]
default-features = false

[dependencies.tempfile]
version = "3.20"
optional = true

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

[dependencies.ttf-parser]
version = "0.25"
features = ["std"]
default-features = false

[dependencies.two-face]
version = "0.5"
features = ["syntect-onig"]
default-features = false

[dependencies.unicode-segmentation]
version = "1.13"

[dependencies.unicode-width]
version = "0.2"

[dependencies.vt-mermaid]
version = "0.1"

[dev-dependencies.assert_cmd]
version = "2.0"

[dev-dependencies.base64]
version = "0.23"

[dev-dependencies.insta]
version = "1"

[dev-dependencies.predicates]
version = "3.1"

[dev-dependencies.tempfile]
version = "3.20"

[target."cfg(unix)".dependencies.rustix]
version = "1.1"
features = [
    "fs",
    "process",
    "termios",
]
optional = true

[target."cfg(unix)".dev-dependencies.rustix]
version = "1.1"
features = [
    "fs",
    "process",
    "pty",
    "termios",
]

[lints.clippy]
cast_precision_loss = "allow"
doc_markdown = "allow"
expect_used = "warn"
format_collect = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
unwrap_used = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"

[profile.dist]
inherits = "release"

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