[package]
edition = "2024"
rust-version = "1.85"
name = "rnk"
version = "0.11.0"
authors = ["majiayu000 <1835304752@qq.com>"]
build = false
exclude = [
"examples/*",
"docs/*",
".github/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A React-like declarative terminal UI framework for Rust, inspired by Ink"
homepage = "https://github.com/majiayu000/rnk"
documentation = "https://docs.rs/rnk"
readme = "README.md"
keywords = [
"tui",
"terminal",
"ui",
"cli",
"react",
]
categories = [
"command-line-interface",
"gui",
]
license = "MIT"
repository = "https://github.com/majiayu000/rnk"
[features]
default = []
http = ["dep:reqwest"]
testing = []
[lib]
name = "rnk"
path = "src/lib.rs"
[[bin]]
name = "rnk"
path = "src/main.rs"
[[test]]
name = "cmd_integration_test"
path = "tests/cmd_integration_test.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "layout_alignment_test"
path = "tests/layout_alignment_test.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[test]]
name = "terminal_mode_test"
path = "tests/terminal_mode_test.rs"
[[test]]
name = "virtual_screen_diff_test"
path = "tests/virtual_screen_diff_test.rs"
[[bench]]
name = "hooks"
path = "benches/hooks.rs"
harness = false
[[bench]]
name = "layout"
path = "benches/layout.rs"
harness = false
[[bench]]
name = "render"
path = "benches/render.rs"
harness = false
[[bench]]
name = "unicode"
path = "benches/unicode.rs"
harness = false
[dependencies.crossterm]
version = "0.28"
[dependencies.ctrlc]
version = "3.4"
features = ["termination"]
[dependencies.log]
version = "0.4"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
optional = true
[dependencies.taffy]
version = "0.7"
[dependencies.textwrap]
version = "0.16"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"sync",
"time",
"macros",
"fs",
"process",
]
[dependencies.unicode-segmentation]
version = "1.12"
[dependencies.unicode-width]
version = "0.2"
[dev-dependencies.divan]
version = "0.1"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[target."cfg(unix)".dependencies.libc]
version = "0.2"