# 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 = "inkhaven"
version = "1.6.0"
authors = ["Vladimir Ulogov <vulogov@gmail.com>"]
build = "build.rs"
exclude = [
    "Book/**",
    "Documentation/**/*.pdf",
    ".github/**",
    ".claude/**",
    ".vscode/**",
    ".idea/**",
    ".DS_Store",
    "**/.DS_Store",
    "/*.pdf",
    "/*.epub",
    "proof_corpus/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Inkhaven — TUI literary work editor for Typst books"
homepage = "https://github.com/vulogov/blackInkhaven"
documentation = "https://github.com/vulogov/blackInkhaven/tree/main/Documentation"
readme = "README.md"
keywords = [
    "tui",
    "editor",
    "typst",
    "writing",
    "ai",
]
categories = [
    "command-line-utilities",
    "text-editors",
    "text-processing",
]
license = "Apache-2.0 AND MIT"
repository = "https://github.com/vulogov/blackInkhaven"

[package.metadata.binstall]
pkg-url = "{repo}/releases/download/v{version}/{name}-{target}{archive-suffix}"
bin-dir = "{name}-{target}/{bin}{binary-ext}"
pkg-fmt = "tgz"

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

[[bench]]
name = "common"
path = "benches/common.rs"

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

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

[dependencies.anyhow]
version = "1"

[dependencies.arboard]
version = "3"

[dependencies.barcoders]
version = "2"

[dependencies.bund_language_parser]
version = "=0.14.0"

[dependencies.bundcore]
version = "=0.7.0"

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

[dependencies.clap]
version = "4"
features = [
    "derive",
    "wrap_help",
]

[dependencies.crossterm]
version = "0.28"

[dependencies.delaunator]
version = "1"

[dependencies.directories]
version = "6"

[dependencies.duckdb]
version = "1"
features = [
    "bundled",
    "r2d2",
]

[dependencies.easy-error]
version = "1"

[dependencies.fastembed]
version = "5"

[dependencies.fs2]
version = "0.4"

[dependencies.futures-util]
version = "0.3"

[dependencies.genai]
version = "=0.6.0-beta.20"

[dependencies.humantime]
version = "2"

[dependencies.humantime-serde]
version = "1"

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
    "gif",
    "webp",
]
default-features = false

[dependencies.kurbo]
version = "0.12"

[dependencies.lopdf]
version = "0.41"
features = [
    "chrono",
    "rayon",
    "time",
]
default-features = false

[dependencies.minijinja]
version = "2"

[dependencies.noise]
version = "0.9"

[dependencies.norad]
version = "0.18.4"

[dependencies.nu-command]
version = "0.112"

[dependencies.nu-engine]
version = "0.112"

[dependencies.nu-parser]
version = "0.112"

[dependencies.nu-protocol]
version = "0.112"

[dependencies.parking_lot]
version = "0.12"

[dependencies.pdf-extract]
version = "0.9"

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

[dependencies.quick-xml]
version = "0.36"

[dependencies.r2d2]
version = "0.8"

[dependencies.ratatui]
version = "0.29"

[dependencies.ratatui-image]
version = "5"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.resvg]
version = "0.47"

[dependencies.rodio]
version = "0.20"
default-features = false

[dependencies.rtf-parser-tt]
version = "0.5"

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

[dependencies.rust-stemmers]
version = "1.2"

[dependencies.rust_dynamic]
version = "=0.49.0"

[dependencies.rust_multistackvm]
version = "=0.38.0"

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

[dependencies.serde-hjson]
version = "1.1"

[dependencies.serde_json]
version = "1"

[dependencies.similar]
version = "2"
features = ["text"]
default-features = false

[dependencies.slug]
version = "0.1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "fs",
    "io-util",
    "signal",
    "sync",
    "time",
]

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

[dependencies.tracing]
version = "0.1"

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

[dependencies.tree-sitter]
version = "0.20"

[dependencies.tree-sitter-highlight]
version = "0.20"

[dependencies.tui-textarea]
version = "0.7"
features = [
    "crossterm",
    "ratatui",
    "search",
]
default-features = false

[dependencies.tylax]
version = "0.3"
default-features = false

[dependencies.typst]
version = "0.14"

[dependencies.typst-kit]
version = "0.14"
features = [
    "fonts",
    "embed-fonts",
    "downloads",
    "packages",
]
default-features = false

[dependencies.typst-pdf]
version = "0.14"

[dependencies.typst-render]
version = "0.14"

[dependencies.typst-syntax]
version = "0.14"

[dependencies.unicode-segmentation]
version = "1"

[dependencies.uuid]
version = "1"
features = [
    "v7",
    "serde",
]

[dependencies.vecstore]
version = "1"

[dependencies.walkdir]
version = "2"

[dependencies.whatlang]
version = "0.16"

[dependencies.write-fonts]
version = "0.43"

[dependencies.zip]
version = "2"
features = ["deflate"]
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
default-features = false

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.skrifa]
version = "0.37"

[dev-dependencies.tempfile]
version = "3"

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

[build-dependencies.syn]
version = "2"
features = ["full"]

[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"
