-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathCargo.toml
More file actions
78 lines (67 loc) · 2.36 KB
/
Cargo.toml
File metadata and controls
78 lines (67 loc) · 2.36 KB
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
[package]
name = "ratatui-image"
version = "10.0.6"
edition = "2024"
autoexamples = true
authors = ["Benjamin Große <ste3ls@gmail.com>"]
description = "An image widget for ratatui, supporting sixels, kitty, iterm2, and unicode-halfblocks"
keywords = ["ratatui", "image", "sixel", "kitty", "iterm2"]
repository = "https://github.com/ratatui/ratatui-image"
homepage = "https://github.com/ratatui/ratatui-image"
readme = "README.md"
license = "MIT"
exclude = ["assets/*"]
rust-version = "1.86.0"
[features]
default = ["image-defaults", "crossterm", "chafa-dyn"]
crossterm = ["ratatui/crossterm"]
image-defaults = ["image/default"]
termion = ["ratatui/termion"]
termwiz = ["ratatui/termwiz"]
serde = ["dep:serde"]
tokio = ["dep:tokio"]
thread-example = []
chafa-dyn = ["dep:pkg-config"]
chafa-static = ["dep:pkg-config"]
[dependencies]
image = { version = "^0.25.6", default-features = false, features = ["png"] }
icy_sixel = { version = "^0.5.0" }
serde = { version = "^1.0", optional = true, features = ["derive"] }
base64-simd = { version = "0.8" }
rand = { version = "^0.8.5" }
ratatui = { version = "^0.30.0", default-features = false, features = [] }
thiserror = { version = "1.0.59" }
tokio = { version = "1.45.1", default-features = false, optional = true, features = ["sync"]}
[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 = "thread"
required-features = ["crossterm", "thread-example"] # clashes with "tokio".
[[example]]
name = "tokio"
required-features = ["crossterm", "tokio"]
[build-dependencies]
pkg-config = { version = "0.3", optional = true }
[dev-dependencies]
color-eyre = "0.6.5"
crossterm = { version = "0.29.0", features = ["event-stream"] }
futures = "0.3.31"
tokio = { version = "1.45.1", features = ["macros", "rt", "rt-multi-thread"] }
insta = "1.44.3"
[package.metadata.docs.rs]
features = ["crossterm"]