comrak 0.51.0

A 100% CommonMark-compatible GitHub Flavored Markdown parser and formatter
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.85"
name = "comrak"
version = "0.51.0"
authors = [
    "Asherah Connor <ashe@kivikakk.ee>",
    "Brett Walker <github@digitalmoksha.com>",
    "gjtorikian",
]
build = "build.rs"
exclude = [
    "/hooks/*",
    "/script/*",
    "/vendor/*",
    "/.travis.yml",
    "/Makefile",
    "/spec_out.txt",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A 100% CommonMark-compatible GitHub Flavored Markdown parser and formatter"
homepage = "https://github.com/kivikakk/comrak"
documentation = "https://docs.rs/comrak"
readme = "README.md"
keywords = [
    "markdown",
    "commonmark",
]
categories = [
    "text-processing",
    "parsing",
    "command-line-utilities",
]
license = "BSD-2-Clause"
repository = "https://github.com/kivikakk/comrak"
resolver = "3"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
bon = ["dep:bon"]
cli = [
    "clap",
    "bon",
    "shell-words",
    "xdg",
    "fmt2io",
    "shortcodes",
    "phoenix_heex",
]
default = [
    "cli",
    "syntect",
    "bon",
]
phoenix_heex = []
shortcodes = ["emojis"]

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

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

[[example]]
name = "custom_formatter"
path = "examples/custom_formatter.rs"

[[example]]
name = "custom_formatter_alt_text"
path = "examples/custom_formatter_alt_text.rs"

[[example]]
name = "custom_formatter_user"
path = "examples/custom_formatter_user.rs"

[[example]]
name = "custom_headings"
path = "examples/custom_headings.rs"

[[example]]
name = "headers"
path = "examples/headers.rs"

[[example]]
name = "iterator_replace"
path = "examples/iterator_replace.rs"

[[example]]
name = "s-expr"
path = "examples/s-expr.rs"
required-features = ["bon"]

[[example]]
name = "sample"
path = "examples/sample.rs"

[[example]]
name = "syntax_highlighter"
path = "examples/syntax_highlighter.rs"

[[example]]
name = "syntect"
path = "examples/syntect.rs"
required-features = ["syntect"]

[[example]]
name = "traverse_demo"
path = "examples/traverse_demo.rs"

[[example]]
name = "update-readme"
path = "examples/update-readme.rs"

[[bench]]
name = "progits"
path = "benches/progits.rs"
harness = false

[dependencies.arbitrary]
version = "1"
features = ["derive"]
optional = true

[dependencies.bon]
version = "3"
optional = true

[dependencies.caseless]
version = "0.2"

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

[dependencies.finl_unicode]
version = "1.4.0"
features = ["categories"]

[dependencies.fmt2io]
version = "1.0.0"
optional = true

[dependencies.jetscii]
version = "0.5.3"

[dependencies.phf]
version = "0.13"

[dependencies.rustc-hash]
version = "2"

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

[dependencies.smallvec]
version = "1.13"

[dependencies.typed-arena]
version = "2.0.2"

[dev-dependencies.divan]
version = "4.2.0"
package = "codspeed-divan-compat"

[dev-dependencies.glob]
version = "0.3.3"

[dev-dependencies.ntest]
version = "0.9"

[dev-dependencies.percent-encoding-rfc3986]
version = "0.1.3"

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

[dev-dependencies.slug]
version = "0.1.4"

[dev-dependencies.strum]
version = "0.28.0"
features = ["derive"]

[dev-dependencies.toml]
version = "1.0.3"

[build-dependencies.entities]
version = "1"

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

[target.'cfg(all(not(windows), not(target_arch="wasm32")))'.dependencies.xdg]
version = "3"
optional = true

[target.'cfg(any(target_arch = "wasm32", target_os = "ios"))'.dependencies.syntect]
version = "5"
features = ["default-fancy"]
optional = true
default-features = false

[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios")))'.dependencies.syntect]
version = "5"
features = [
    "default-themes",
    "default-syntaxes",
    "html",
    "regex-onig",
]
optional = true
default-features = false

[target.'cfg(not(target_arch="wasm32"))'.dependencies.clap]
version = "4"
features = [
    "derive",
    "string",
    "wrap_help",
]
optional = true

[target.'cfg(target_arch="wasm32")'.dependencies.clap]
version = "4"
features = [
    "derive",
    "string",
]
optional = true

[profile.release]
lto = true