# 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.92.0"
name = "tui-journal"
version = "0.17.0"
authors = ["Ammar Abou Zor"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tui app allows writing and managing journals/notes from within the terminal With different local back-ends"
readme = "README.md"
keywords = [
    "tui",
    "terminal-app",
    "journal",
    "cli",
    "ui",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/ammarabouzor/tui-journal"

[features]
default = [
    "json",
    "sqlite",
]
json = []
sqlite = ["dep:sqlx"]

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

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

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

[dependencies.aho-corasick]
version = "1.1"

[dependencies.anyhow]
version = "1.0"

[dependencies.arboard]
version = "3.6"
features = ["wayland-data-control"]
default-features = false

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

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

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

[dependencies.directories]
version = "6.0"

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

[dependencies.fuzzy-matcher]
version = "0.3"

[dependencies.git2]
version = "0.21"
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.path-absolutize]
version = "3.1"

[dependencies.ratatui]
version = "0.29"
features = [
    "all-widgets",
    "serde",
]

[dependencies.rayon]
version = "1.12"

[dependencies.scopeguard]
version = "1.2"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.simplelog]
version = "0.12"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "sqlite",
    "chrono",
]
optional = true

[dependencies.tempfile]
version = "3.27"

[dependencies.textwrap]
version = "0.16"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.toml]
version = "1.1"

[dependencies.tui-textarea]
version = "0.7"
