# 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.94.1"
name = "marco-core"
version = "1.1.1"
authors = ["Kim Skov Rasmussen"]
build = false
include = [
    "src/**/*",
    "tools/spec/*.json",
    "tools/spec/README.md",
    "Cargo.toml",
    "Cargo.lock",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "nom-based Markdown parser, HTML renderer, and intelligence features (highlights, diagnostics, completions) for the Marco editor."
homepage = "https://github.com/Ranrar/marco-core"
documentation = "https://docs.rs/marco-core"
readme = "README.md"
keywords = [
    "markdown",
    "parser",
    "commonmark",
    "renderer",
    "nom",
]
categories = [
    "parsing",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/Ranrar/marco-core"

[features]
default = [
    "intelligence-highlights",
    "intelligence-diagnostics",
    "intelligence-completions",
    "intelligence-hover",
    "render-syntax-highlighting",
    "render-math",
    "render-diagrams",
    "file-logger",
]
file-logger = []
intelligence-completions = []
intelligence-diagnostics = []
intelligence-highlights = ["render-syntax-highlighting"]
intelligence-hover = []
render-diagrams = ["dep:mermaid-rs-renderer"]
render-math = ["dep:katex-rs"]
render-syntax-highlighting = ["dep:syntect"]

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

[dependencies.chrono]
version = "0.4.43"
features = ["serde"]

[dependencies.dirs]
version = "6.0.0"

[dependencies.emojis]
version = "0.8.0"

[dependencies.htmlescape]
version = "0.3.1"

[dependencies.katex-rs]
version = "0.2.3"
optional = true

[dependencies.log]
version = "0.4.29"

[dependencies.mermaid-rs-renderer]
version = "0.2.1"
optional = true
default-features = false

[dependencies.nom]
version = "8.0.0"

[dependencies.nom_locate]
version = "5.0.0"

[dependencies.ron]
version = "0.12.0"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.syntect]
version = "5.3.0"
optional = true

[dependencies.tempfile]
version = "3.25.0"

[dependencies.unicode-normalization]
version = "0.1.25"

[dev-dependencies.serial_test]
version = "3.3.1"

[target.'cfg(target_os = "linux")'.dependencies.fontconfig]
version = "0.10.0"

[profile.dev]
opt-level = 0
debug = 2
overflow-checks = true
incremental = true

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 16
debug = 0
panic = "abort"
strip = true
