# 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.91"
name = "mermaid-cli"
version = "0.12.1"
authors = ["Noah Sabaj <noahsabaj@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "mermaid"
description = "Open-source AI pair programmer with agentic capabilities. Local-first with Ollama, native tool calling, and beautiful TUI."
homepage = "https://github.com/noahsabaj/mermaid-cli"
documentation = "https://github.com/noahsabaj/mermaid-cli#readme"
readme = "README.md"
keywords = [
    "ai",
    "coding-assistant",
    "ollama",
    "tui",
    "pair-programming",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/noahsabaj/mermaid-cli"

[package.metadata.deb]
name = "mermaid-cli"
maintainer = "Noah Sabaj <noahsabaj@gmail.com>"
copyright = "2026, Noah Sabaj"
license-file = [
    "LICENSE-MIT",
    "0",
]
extended-description = "Mermaid is a local-first, multi-provider AI coding assistant with a TUI client, daemon runtime, durable task state, and agentic tool calling."
section = "utils"
priority = "optional"
assets = [
    [
    "target/release/mermaid",
    "usr/bin/",
    "755",
],
    [
    "target/release/mermaidd",
    "usr/bin/",
    "755",
],
    [
    "README.md",
    "usr/share/doc/mermaid-cli/README.md",
    "644",
],
    [
    "LICENSE-MIT",
    "usr/share/doc/mermaid-cli/LICENSE-MIT",
    "644",
],
    [
    "LICENSE-APACHE",
    "usr/share/doc/mermaid-cli/LICENSE-APACHE",
    "644",
],
    [
    "packaging/systemd/mermaidd.service",
    "usr/lib/systemd/user/mermaidd.service",
    "644",
],
]

[[package.metadata.generate-rpm.assets]]
source = "target/release/mermaid"
dest = "/usr/bin/mermaid"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "target/release/mermaidd"
dest = "/usr/bin/mermaidd"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "README.md"
dest = "/usr/share/doc/mermaid-cli/README.md"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "LICENSE-MIT"
dest = "/usr/share/doc/mermaid-cli/LICENSE-MIT"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "LICENSE-APACHE"
dest = "/usr/share/doc/mermaid-cli/LICENSE-APACHE"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "packaging/systemd/mermaidd.service"
dest = "/usr/lib/systemd/user/mermaidd.service"
mode = "644"

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

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

[[bin]]
name = "mermaidd"
path = "src/bin/mermaidd.rs"

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1.11"

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

[dependencies.clap]
version = "4.6"
features = [
    "derive",
    "env",
]

[dependencies.crossterm]
version = "0.29"
features = ["event-stream"]

[dependencies.directories]
version = "6.0"

[dependencies.futures]
version = "0.3"

[dependencies.getrandom]
version = "0.4"

[dependencies.mermaid-runtime]
version = "0.12.1"

[dependencies.pulldown-cmark]
version = "0.13"

[dependencies.ratatui]
version = "0.30"
features = ["scrolling-regions"]

[dependencies.regex]
version = "1.12"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
    "rustls",
]
default-features = false

[dependencies.rpassword]
version = "7.4.0"

[dependencies.rusqlite]
version = "0.40"
features = ["bundled"]

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

[dependencies.sysinfo]
version = "0.38.4"
features = ["system"]
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.44"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
default-features = false

[dependencies.toml]
version = "1.1"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

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

[dependencies.which]
version = "8.0"

[dev-dependencies.portable-pty]
version = "0.9"

[dev-dependencies.temp-env]
version = "0.3"
features = ["async_closure"]

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