[package]
name = "tui-input"
version = "0.15.3"
edition = "2021"
authors = ["Arijit Basu <hi@arijitbasu.in>"]
description = "TUI input library supporting multiple backends"
keywords = ["tui", "terminal", "input"]
repository = "https://github.com/sayanarijit/tui-input"
readme = "README.md"
license = "MIT"
autoexamples = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = ["ratatui-crossterm"]
ratatui-crossterm = ["ratatui/crossterm"]
ratatui-termion = ["ratatui/termion"]

[dependencies]
unicode-width = "0.2.2"
unicode-segmentation = "1.13"
serde = { version = "1.0.228", optional = true, features = ["derive"] }
crossterm = { version = "0.29.0", optional = true }
termion = { version = "4.0.6", optional = true }
ratatui = { version = "0.30.0", optional = true, features = ["crossterm"] }

[dev-dependencies]
serde_json = "1.0"

[[example]]
name = "crossterm_input"
required-features = ["crossterm"]

[[example]]
name = "termion_input"
required-features = ["termion"]

[[example]]
name = "ratatui_crossterm_input"
required-features = ["ratatui-crossterm"]
