forked from rhysd/tui-textarea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
89 lines (74 loc) · 2.3 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[package]
name = "tui-textarea"
version = "0.2.0"
edition = "2021"
rust-version = "1.56.1"
authors = ["rhysd <[email protected]>"]
description = """
tui-textarea is a simple yet powerful text editor widget for tui-rs and ratatui. Multi-line
text editor can be easily put as part of your TUI application.
"""
license = "MIT"
homepage = "https://github.com/rhysd/tui-textarea#readme"
repository = "https://github.com/rhysd/tui-textarea"
readme = "README.md"
categories = ["text-editors", "text-processing"]
keywords = ["tui", "textarea", "editor", "input", "edit", "ratatui"]
include = ["/src", "/examples", "/README.md", "/LICENSE.txt"]
[features]
default = ["crossterm"]
# Features to use tui-rs
crossterm = ["dep:crossterm", "tui/crossterm"]
termion = ["dep:termion", "tui/termion"]
your-backend = ["tui"]
# Features to use ratatui
ratatui-crossterm = ["dep:crossterm-026", "ratatui/crossterm"]
ratatui-termion = ["dep:termion", "ratatui/termion"]
ratatui-your-backend = ["ratatui"]
# Other optional features
search = ["dep:regex"]
[dependencies]
crossterm = { package = "crossterm", version = "0.25", optional = true }
regex = { version = "1", optional = true }
termion = { version = "1.5", optional = true }
tui = { version = "0.19", default-features = false, optional = true }
arbitrary = { version = "1", features = ["derive"], optional = true }
crossterm-026 = { package = "crossterm", version = "0.26", optional = true }
ratatui = { version = "0.22.0", default-features = false, optional = true }
[[example]]
name = "minimal"
required-features = ["crossterm"]
[[example]]
name = "termion"
required-features = ["termion"]
[[example]]
name = "editor"
required-features = ["crossterm", "search"]
[[example]]
name = "split"
required-features = ["crossterm"]
[[example]]
name = "single_line"
required-features = ["crossterm"]
[[example]]
name = "variable"
required-features = ["crossterm"]
[[example]]
name = "modal"
required-features = ["crossterm"]
[[example]]
name = "ratatui_minimal"
required-features = ["ratatui-crossterm"]
[[example]]
name = "ratatui_editor"
required-features = ["ratatui-crossterm", "search"]
[[example]]
name = "ratatui_termion"
required-features = ["ratatui-termion"]
[workspace]
members = ["bench"]
[profile.bench]
lto = "thin"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]