1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00
wezterm/termwiz/Cargo.toml

71 lines
1.5 KiB
TOML
Raw Normal View History

[package]
authors = ["Wez Furlong"]
name = "termwiz"
introduce unicode_version config This is a fairly far-reaching commit. The idea is: * Introduce a unicode_version config that specifies the default level of unicode conformance for each newly created Terminal (each Pane) * The unicode_version is passed down to the `grapheme_column_width` function which interprets the width based on the version * `Cell` records the width so that later calculations don't need to know the unicode version In a subsequent diff, I will introduce an escape sequence that allows setting/pushing/popping the unicode version so that it can be overridden via eg: a shell alias prior to launching an application that uses a different version of unicode from the default. This approach allows output from multiple applications with differing understanding of unicode to coexist on the same screen a little more sanely. Note that the default `unicode_version` is set to 9, which means that emoji presentation selectors are now by-default ignored. This was selected to better match the level of support in widely deployed applications. I expect to raise that default version in the future. Also worth noting: there are a number of callers of `unicode_column_width` in things like overlays and lua helper functions that pass `None` for the unicode version: these will assume the latest known-to-wezterm/termwiz version of unicode to be desired. If those overlays do things with emoji presentation selectors, then there may be some alignment artifacts. That can be tackled in a follow up commit. refs: #1231 refs: #997
2021-11-25 18:53:07 +03:00
version = "0.14.0"
2019-02-19 10:26:41 +03:00
edition = "2018"
repository = "https://github.com/wez/wezterm"
description = "Terminal Wizardry for Unix and Windows"
license = "MIT"
documentation = "https://docs.rs/termwiz"
2019-05-28 05:57:44 +03:00
keywords = ["terminal", "readline", "console", "curses"]
2019-05-28 06:08:02 +03:00
readme = "README.md"
[dependencies]
2020-12-29 20:21:50 +03:00
base64 = "0.13"
2021-08-16 04:21:17 +03:00
bitflags = "1.3"
cassowary = {version="0.3", optional=true}
2021-02-12 19:35:00 +03:00
cfg-if = "1.0"
2019-12-15 08:43:05 +03:00
anyhow = "1.0"
filedescriptor = { version="0.8", path = "../filedescriptor" }
fnv = {version="1.0", optional=true}
hex = "0.4"
image = {version="0.23", optional=true}
lazy_static = "1.4"
2019-05-28 06:08:02 +03:00
libc = "0.2"
2019-06-09 01:37:55 +03:00
log = "0.4"
2019-05-28 06:08:02 +03:00
memmem = "0.1"
num-traits = "0.2"
2021-09-06 09:25:37 +03:00
ordered-float = "2.8"
regex = "1"
2020-12-29 20:21:50 +03:00
semver = "0.11"
serde = {version="1.0", features = ["rc", "derive"], optional=true}
sha2 = "0.9"
2020-01-10 09:39:34 +03:00
terminfo = "0.7"
thiserror = "1.0"
unicode-segmentation = "1.8"
ucd-trie = "0.1"
2021-04-14 22:59:26 +03:00
vtparse = { version="0.5", path="../vtparse" }
[features]
widgets = ["cassowary", "fnv"]
use_serde = ["serde"]
use_image = ["image"]
docs = ["widgets", "use_serde"]
[dev-dependencies]
2019-05-28 05:44:55 +03:00
varbincode = "0.1"
pretty_assertions = "0.6"
[dependencies.num-derive]
features = ["full-syntax"]
2020-12-29 20:21:50 +03:00
version = "0.3"
[target."cfg(unix)".dependencies]
2019-05-28 06:08:02 +03:00
signal-hook = "0.1"
termios = "0.3"
[target."cfg(windows)".dependencies.winapi]
features = [
"winbase",
"winerror",
"winuser",
"consoleapi",
"handleapi",
"fileapi",
"synchapi",
]
2019-05-28 06:08:02 +03:00
version = "0.3"
[package.metadata.docs.rs]
features = ["docs"]
rustdoc-args = ["--cfg", "feature=\"docs\""]