# 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-canvas"
version = "0.8.16"
authors = ["Filip Priečinský <filippriec@gmail.com>"]
build = false
exclude = [
    ".claude/",
    ".forge/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Form/textarea/input for TUI"
readme = "README.md"
keywords = [
    "tui",
    "terminal",
    "ratatui",
    "keyboard",
    "ui",
]
categories = ["command-line-interface"]
license = "MIT"
repository = "https://gitlab.com/filipriec/tui-canvas"

[features]
clipboard = ["dep:arboard"]
commandline = ["textinput"]
computed = []
cursor-style = ["crossterm"]
default = [
    "textmode-vim",
    "clipboard",
]
full = [
    "gui",
    "suggestions",
    "cursor-style",
    "validation",
    "computed",
    "textarea",
    "textinput",
    "commandline",
    "keybindings",
    "clipboard",
]
gui = [
    "ratatui",
    "crossterm",
]
keybindings = ["gui"]
suggestions = ["tokio"]
syntect = [
    "dep:syntect",
    "gui",
    "textarea",
]
textarea = [
    "dep:ropey",
    "gui",
]
textinput = ["gui"]
textmode-normal = []
textmode-vim = []
validation = [
    "regex",
    "validation-core",
    "validation-core/regex",
]

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

[[example]]
name = "canvas_cursor_auto"
path = "examples/canvas_cursor_auto.rs"
required-features = [
    "gui",
    "cursor-style",
]

[[example]]
name = "canvas_keybindings"
path = "examples/canvas_keybindings.rs"
required-features = [
    "gui",
    "keybindings",
    "cursor-style",
]

[[example]]
name = "computed_fields"
path = "examples/computed_fields.rs"
required-features = [
    "gui",
    "computed",
]

[[example]]
name = "form_helix"
path = "examples/minimal/form_helix.rs"
required-features = [
    "gui",
    "keybindings",
    "cursor-style",
]

[[example]]
name = "form_vim"
path = "examples/minimal/form_vim.rs"
required-features = [
    "gui",
    "keybindings",
    "cursor-style",
]

[[example]]
name = "suggestions"
path = "examples/suggestions/suggestions.rs"
required-features = [
    "suggestions",
    "gui",
    "cursor-style",
]

[[example]]
name = "suggestions2"
path = "examples/suggestions/suggestions2.rs"
required-features = [
    "suggestions",
    "gui",
    "cursor-style",
]

[[example]]
name = "textarea_helix_minimal"
path = "examples/minimal/textarea_helix_minimal.rs"
required-features = [
    "textarea",
    "keybindings",
    "cursor-style",
    "commandline",
]

[[example]]
name = "textarea_normal"
path = "examples/textarea/textarea_normal.rs"
required-features = [
    "gui",
    "cursor-style",
    "textarea",
    "textmode-normal",
    "keybindings",
    "commandline",
]

[[example]]
name = "textarea_syntax"
path = "examples/textarea/textarea_syntax.rs"
required-features = [
    "gui",
    "cursor-style",
    "textarea",
    "textmode-normal",
    "keybindings",
    "syntect",
]

[[example]]
name = "textarea_vim"
path = "examples/textarea/textarea_vim.rs"
required-features = [
    "gui",
    "cursor-style",
    "textarea",
    "textmode-vim",
    "keybindings",
]

[[example]]
name = "textarea_vim_minimal"
path = "examples/minimal/textarea_vim_minimal.rs"
required-features = [
    "textarea",
    "keybindings",
    "cursor-style",
    "commandline",
]

[[example]]
name = "textarea_vscode_minimal"
path = "examples/minimal/textarea_vscode_minimal.rs"
required-features = [
    "textarea",
    "keybindings",
    "cursor-style",
    "commandline",
    "textmode-normal",
]

[[example]]
name = "textinput_helix_minimal"
path = "examples/minimal/textinput_helix_minimal.rs"
required-features = [
    "gui",
    "textinput",
    "keybindings",
    "cursor-style",
]

[[example]]
name = "textinput_normal"
path = "examples/textarea/textinput_normal.rs"
required-features = [
    "gui",
    "cursor-style",
    "textinput",
    "textmode-normal",
]

[[example]]
name = "textinput_vim_minimal"
path = "examples/minimal/textinput_vim_minimal.rs"
required-features = [
    "gui",
    "textinput",
    "keybindings",
    "cursor-style",
]

[[example]]
name = "undo_redo"
path = "examples/default/undo_redo.rs"
required-features = [
    "gui",
    "cursor-style",
    "textinput",
]

[[example]]
name = "validation_1"
path = "examples/validation/validation_1.rs"
required-features = [
    "gui",
    "validation",
    "cursor-style",
]

[[example]]
name = "validation_2"
path = "examples/validation/validation_2.rs"
required-features = [
    "gui",
    "validation",
    "cursor-style",
]

[[example]]
name = "validation_3"
path = "examples/validation/validation_3.rs"
required-features = [
    "gui",
    "validation",
    "cursor-style",
]

[[example]]
name = "validation_4"
path = "examples/validation/validation_4.rs"
required-features = [
    "gui",
    "validation",
    "cursor-style",
]

[[example]]
name = "validation_5"
path = "examples/validation/validation_5.rs"
required-features = [
    "gui",
    "validation",
    "cursor-style",
]

[dependencies.anyhow]
version = "1.0.102"

[dependencies.arboard]
version = "3.6"
optional = true

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

[dependencies.crossterm]
version = "0.29.0"
optional = true

[dependencies.derivative]
version = "2.2.0"

[dependencies.once_cell]
version = "1.21.4"

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

[dependencies.regex]
version = "1.12.4"
optional = true

[dependencies.ropey]
version = "1.6.1"
optional = true

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

[dependencies.syntect]
version = "5.3.0"
features = ["default-fancy"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.52.3"
features = ["full"]
optional = true

[dependencies.toml]
version = "1.1.2"

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3.23"

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

[dependencies.validation-core]
version = "0.8.1"
optional = true
package = "tui-canvas-validation-core"

[dev-dependencies.tokio-test]
version = "0.4.5"
