mirror of
https://github.com/wez/wezterm.git
synced 2024-11-22 13:16:39 +03:00
e090eb9eae
Continuing from the previous commit, this shifts: * In-memory data -> temporary file * Image decoding -> background thread The background thread asynchronously decodes frames and sends them to the render thread via a bounded channel. While decoding frames, it writes them, uncompressed, to a scratch file so that when the animation loops, it is a very cheap operation to rewind and pull that data from the file, without having to burn CPU to re-decode the data from the start. Memory usage is bounded to 4 uncompressed frames while decoding, then 3 uncompressed frames (triple buffered) while looping over the rest. However, disk usage is N uncompressed frames. refs: https://github.com/wez/wezterm/issues/3263
46 lines
1.2 KiB
TOML
46 lines
1.2 KiB
TOML
[package]
|
|
authors = ["Wez Furlong <wez@wezfurlong.org>"]
|
|
name = "wezterm-term"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
repository = "https://github.com/wez/wezterm"
|
|
description = "The Virtual Terminal Emulator core from wezterm; helpful for implementing terminal emulators"
|
|
license = "MIT"
|
|
documentation = "https://docs.rs/wezterm-term"
|
|
keywords = ["terminal", "emulator", "vte"]
|
|
readme = "README.md"
|
|
|
|
[features]
|
|
use_serde = ["termwiz/use_serde"]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
bitflags = "1.3"
|
|
csscolorparser = "0.6"
|
|
humansize = "2.1"
|
|
miniz_oxide = "0.4"
|
|
finl_unicode = "1.2"
|
|
hex = "0.4"
|
|
# we want image 0.24.6 or later. see https://github.com/wez/wezterm/issues/3250
|
|
image = {version="0.24", git="https://github.com/image-rs/image.git", rev="fe069785ae245a2c510fd724ef96da283b05a236"}
|
|
lazy_static = "1.4"
|
|
log = "0.4"
|
|
lru = "0.7"
|
|
num-traits = "0.2"
|
|
ordered-float = "3.0"
|
|
serde = {version="1.0", features = ["rc"]}
|
|
terminfo = "0.7"
|
|
unicode-normalization = "0.1.21"
|
|
url = "2"
|
|
wezterm-bidi = { path = "../bidi" }
|
|
wezterm-dynamic = { path = "../wezterm-dynamic" }
|
|
|
|
[dev-dependencies]
|
|
env_logger = "0.10"
|
|
k9 = "0.11.0"
|
|
|
|
[dependencies.termwiz]
|
|
version = "0.21"
|
|
path = "../termwiz"
|
|
features = ["use_image"]
|