# 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"
name = "mdopen"
version = "0.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Preview markdown files in a browser"
readme = "README.md"
keywords = ["markdown"]
license = "BSD-3-Clause"
repository = "https://github.com/immanelg/mdopen"

[features]
default = [
    "open",
    "reload",
    "syntax",
]
open = ["dep:open"]
reload = [
    "dep:notify",
    "dep:bus",
    "dep:base64",
    "dep:sha1",
]
syntax = ["dep:syntect"]

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

[[bin]]
name = "mdopen"
path = "src/main.rs"

[[test]]
name = "test_server"
path = "tests/test_server.rs"

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

[dependencies.bus]
version = "2.4.1"
optional = true

[dependencies.env_logger]
version = "0.11.3"
features = ["humantime"]
default-features = false

[dependencies.lexopt]
version = "0.3.0"

[dependencies.log]
version = "0.4.21"

[dependencies.minijinja]
version = "2.7.0"

[dependencies.notify]
version = "8.0.0"
optional = true

[dependencies.open]
version = "5"
optional = true

[dependencies.percent-encoding]
version = "2"

[dependencies.pulldown-cmark]
version = "0.13"
features = ["html"]
default-features = false

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

[dependencies.sha1]
version = "0.10.6"
optional = true

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

[dependencies.tiny_http]
version = "0.12.0"

[dev-dependencies.reqwest]
version = "0.12.12"
features = ["blocking"]

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
