[package]
name = "mrk-cli"
version = "0.12.0"
edition = "2024"
rust-version = "1.92"
description = "Render Markdown beautifully in the terminal: syntax highlighting, tables, themes, and Mermaid diagrams as images."
license = "MIT"
readme = "README.md"
repository = "https://github.com/vmeyet/mrk-cli"
documentation = "https://docs.rs/mrk-cli"
homepage = "https://github.com/vmeyet/mrk-cli"
keywords = ["markdown", "terminal", "mermaid", "cli", "renderer"]
categories = ["command-line-utilities", "text-processing", "visualization"]
include = ["/src/**/*.rs", "/assets/fonts/*", "/build.rs", "/README.md", "/LICENSE", "/CHANGELOG.md"]
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu"]
[lib]
name = "mrk"
[[bin]]
name = "mrk"
path = "src/main.rs"
required-features = ["cli"]
[features]
default = ["cli"]
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"]
[dependencies]
anyhow = { version = "1.0", optional = true }
base64 = { version = "0.23", optional = true }
clap = { version = "4.5", features = ["derive"], optional = true }
clap_complete = { version = "4.5", optional = true }
clap_mangen = { version = "0.3", optional = true }
comrak = { version = "0.55", default-features = false }
crossterm = { version = "0.29", features = ["use-dev-tty"], optional = true }
mermaid-rs-renderer = { version = "0.3", default-features = false }
vt-mermaid = "0.3"
png = { version = "0.18", optional = true }
resvg = { version = "0.48", default-features = false, features = ["text", "memmap-fonts"] }
roff = { version = "1.1", optional = true }
shell-words = { version = "1.1", optional = true }
signal-hook = { version = "0.3", optional = true }
similar = "2.7"
serde = { version = "1.0", features = ["derive"], optional = true }
syntect = { version = "5.3", default-features = false, features = ["parsing", "regex-onig"] }
tempfile = { version = "3.20", optional = true }
toml = { version = "1.1", optional = true }
ttf-parser = { version = "0.25", default-features = false, features = ["std"] }
two-face = { version = "0.5", default-features = false, features = ["syntect-onig"] }
unicode-segmentation = "1.13"
unicode-width = "0.2"
[target.'cfg(unix)'.dependencies]
rustix = { version = "1.1", features = ["fs", "process", "termios"], optional = true }
[dev-dependencies]
base64 = "0.23"
tempfile = "3.20"
assert_cmd = "2.0"
insta = "1"
predicates = "3.1"
[target.'cfg(unix)'.dev-dependencies]
rustix = { version = "1.1", features = ["fs", "process", "pty", "termios"] }
[profile.release]
opt-level = "s"
lto = "fat"
strip = true
codegen-units = 1
[profile.dist]
inherits = "release"
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
unwrap_used = "warn"
expect_used = "warn"
cast_precision_loss = "allow"
doc_markdown = "allow"
format_collect = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
return_self_not_must_use = "allow"
module_name_repetitions = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"