textual 1.0.0-dev

A reactive TUI framework inspired by the Python Textual library
Documentation
# 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.0"
name = "textual"
version = "1.0.0-dev"
build = false
exclude = [
    ".idea/",
    ".claude/",
    "docs/devel/",
    "tools/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A reactive TUI framework inspired by the Python Textual library"
documentation = "https://docs.rs/textual"
readme = "README.md"
keywords = [
    "terminal",
    "tui",
    "textual",
    "ui",
    "widgets",
]
categories = ["command-line-interface"]
license = "MIT"
repository = "https://github.com/mrsaraiva/textual-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
trace = ["dep:tracing"]

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

[[example]]
name = "code_browser"
path = "examples/code_browser/main.rs"

[[example]]
name = "dictionary"
path = "examples/dictionary/main.rs"

[[example]]
name = "five_by_five"
path = "examples/five_by_five/main.rs"

[[example]]
name = "json_tree"
path = "examples/json_tree/main.rs"

[[example]]
name = "markdown"
path = "examples/markdown/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.crossterm]
version = "0.28"

[dependencies.open]
version = "5.3"

[dependencies.pulldown-cmark]
version = "0.13"

[dependencies.regex]
version = "1.12"

[dependencies.rich-rs]
version = "1.1.0"

[dependencies.slotmap]
version = "1.1"

[dependencies.textual-macros]
version = "1.0.0-dev"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.43"
features = [
    "macros",
    "rt-multi-thread",
    "time",
    "sync",
]

[dependencies.tracing]
version = "0.1"
optional = true

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

[dependencies.tree-sitter-java]
version = "0.23"

[dependencies.tree-sitter-python]
version = "0.23"

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

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

[dev-dependencies.insta]
version = "1.41"
features = ["glob"]

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

[lints.rust]
unsafe_code = "forbid"