-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathCargo.toml
63 lines (54 loc) · 1.8 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
[package]
name = "ratatui-image"
version = "4.2.0"
edition = "2021"
autoexamples = true
authors = ["Benjamin Große <[email protected]>"]
description = "An image widget for ratatui, supporting sixels and unicode-halfblocks"
keywords = ["ratatui", "image", "sixel", "kitty", "tui"]
repository = "https://github.com/benjajaja/ratatui-image"
homepage = "https://github.com/benjajaja/ratatui-image"
readme = "README.md"
license = "MIT"
exclude = ["assets/*"]
rust-version = "1.81.0"
[features]
default = ["image-defaults"]
crossterm = ["ratatui/crossterm"]
image-defaults = ["image/default"]
termion = ["ratatui/termion"]
termwiz = ["ratatui/termwiz"]
serde = ["dep:serde"]
[dependencies]
image = { version = "^0.25.1", default-features = false, features = ["jpeg"] }
icy_sixel = { version = "^0.1.1" }
serde = { version = "^1.0", optional = true, features = ["derive"] }
base64 = { version = "^0.21.2" }
rand = { version = "^0.8.5" }
ratatui = { version = "^0.29.0", default-features = false, features = [] }
thiserror = { version = "1.0.59" }
[target.'cfg(not(windows))'.dependencies]
rustix = { version = "^0.38.4", features = ["stdio", "termios", "fs"] }
[target.'cfg(windows)'.dependencies]
windows = { version = "0.58.0", default-features = false, features = [
"std",
"Win32_System_Console",
"Win32_Storage_FileSystem",
"Win32_Security",
] }
[[bin]]
name = "ratatui-image"
path = "./src/bin/ratatui-image/main.rs" # cargo readme needs this for some reason
required-features = ["crossterm"]
[[example]]
name = "demo"
# this runs for all of the terminal backends, so it can't be built using --all-features or scraped
doc-scrape-examples = true
[[example]]
name = "screenshot"
required-features = ["crossterm"]
[[example]]
name = "async"
required-features = ["crossterm"]
[package.metadata.docs.rs]
features = ["crossterm"]