# 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"
name = "tui-pages"
version = "0.8.3"
build = false
exclude = [
    "examples/",
    ".claude/",
    ".forge/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core for TUI apps with multiple pages"
readme = "README.md"
keywords = [
    "tui",
    "terminal",
    "ratatui",
    "keyboard",
    "ui",
]
categories = ["command-line-interface"]
license = "MIT"
repository = "https://gitlab.com/filipriec/tui-pages"

[package.metadata.docs.rs]
all-features = true

[features]
canvas = [
    "dep:canvas",
    "dep:ratatui",
    "canvas/gui",
    "canvas/suggestions",
    "canvas/cursor-style",
    "canvas/validation",
    "canvas/computed",
    "canvas/textarea",
    "canvas/textinput",
    "canvas/commandline",
    "canvas/keybindings",
]
command-line = ["dep:ratatui"]
default = []
dialog = ["dep:ratatui"]
full = [
    "canvas",
    "serde",
    "dialog",
    "command-line",
]
serde = [
    "dep:serde",
    "crossterm/serde",
]

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

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

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

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

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

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

[dependencies.canvas]
version = "0.8.3"
optional = true
package = "tui-canvas"

[dependencies.crossterm]
version = "0.29.0"

[dependencies.ratatui]
version = "0.30.1"
features = ["crossterm"]
optional = true

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

[dependencies.toml]
version = "1.1.2"

[dependencies.tracing]
version = "0.1.44"
