1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-28 01:06:37 +03:00
wezterm/Cargo.toml

128 lines
2.9 KiB
TOML
Raw Normal View History

[package]
authors = ["Wez Furlong <wez@wezfurlong.org>"]
name = "wezterm"
version = "0.1.0"
2019-02-19 10:10:37 +03:00
edition = "2018"
build = "build.rs"
default-run = "wezterm"
[build-dependencies]
vergen = "3"
[target.'cfg(windows)'.build-dependencies]
2019-11-04 19:00:58 +03:00
embed-resource = "1.3"
cc = "1.0"
[[bin]]
name = "strip-ansi-escapes"
path = "src/bin/strip-ansi-escapes.rs"
[dependencies]
allsorts = "0.1"
async-task = "1.2"
2020-01-17 02:55:15 +03:00
async-trait = "0.1"
2019-12-15 08:43:05 +03:00
anyhow = "1.0"
thiserror = "1.0"
base64 = "0.10"
2019-03-23 23:57:26 +03:00
base91 = { path = "base91" }
rangeset = { path = "rangeset" }
2019-03-23 23:57:26 +03:00
bitflags = "1.0"
bstr = "0.2"
crossbeam = "0.7"
2019-03-23 23:57:26 +03:00
dirs = "1.0"
downcast-rs = "1.0"
2019-09-21 22:32:21 +03:00
euclid = "0.20"
2020-01-26 20:14:26 +03:00
filedescriptor = { version="0.7", path = "filedescriptor" }
filenamegen = "0.2"
2020-02-14 20:46:19 +03:00
pretty_env_logger = "0.4"
2019-03-23 23:57:26 +03:00
failure = "0.1"
failure_derive = "0.1"
freetype = { path = "deps/freetype" }
image = "0.21"
2019-03-23 23:57:26 +03:00
harfbuzz = { path = "deps/harfbuzz" }
hostname = "0.3"
2019-03-23 23:57:26 +03:00
lazy_static = "1.3"
leb128 = "0.2"
libc = "0.2"
2019-06-09 01:17:41 +03:00
log = "0.4"
lru = "0.4"
2019-02-19 09:57:40 +03:00
open = "1.2"
2020-01-04 12:21:51 +03:00
metrics = { version="0.12", features=["std"]}
config: we can now read ~/.wezterm.lua This allows for slightly more fancy configuration in the future, but for now it is rather simple: your lua script returns a configuration struct with the same shape as that from the TOML file. A `wezterm` module is provided to the script that provides some constants to help understand the environment in which wezterm is running. I want to add some helpers that make setting up the fonts feel less weird (lots of nesting in the data model makes this weird). The ability to conditionally construct configuration is powerful and helps to address the broader request in refs: https://github.com/wez/wezterm/issues/152 An example config looks like this: ```lua local wezterm = require 'wezterm'; print(wezterm.config_dir); print(wezterm.executable_dir); wezterm.log_error("w00t! running " .. wezterm.version .. " on " .. wezterm.target_triple .. " " .. wezterm.home_dir); return { enable_scroll_bar = true, enable_tab_bar = true, ratelimit_output_bytes_per_second = 400000, scrollback_lines = 350000, font_dirs = {".dotfiles/fonts"}, window_padding = { left = 2, bottom = 2, }, font = { font = {{ family = "Operator Mono SSm Lig Medium", }}, }, unix_domains = { { name = "unix", } }, ssh_domains = { { name = "localhost", remote_address = "localhost", username = "wez", }, }, tls_clients = { { name = "cubetls", remote_address = "cube-localdomain:8080", bootstrap_via_ssh = "cube-localdomain", }, }, tls_servers = { { bind_address = "192.168.1.8:8080", }, }, hyperlink_rules = { { regex = "\\b\\w+://(?:[\\w.-]+)\\.[a-z]{2,15}\\S*\\b", format = "$0", }, }, font_rules= { { italic = true, font = { font = {{ family = "Operator Mono SSm Lig Medium Italic", }} }, }, { italic = true, intensity = "Bold", font = { font = {{ family = "Operator Mono SSm Lig Book Italic", }} }, }, { intensity = "Bold", font = { foreground = "tomato", font = {{ family = "Operator Mono SSm Lig Bold", }} }, }, { intensity = "Half", font = { font = {{ family = "Operator Mono SSm Lig Light", }} }, }, }, } ```
2020-02-26 21:21:03 +03:00
mlua = {version="0.2", features=["vendored"]}
2020-01-04 12:21:51 +03:00
hdrhistogram = "6.3"
openssl = "0.10"
# file change notification
notify = "4.0"
2020-01-10 09:39:34 +03:00
palette = "0.5"
portable-pty = { path = "pty", features = ["serde_support", "ssh"]}
2019-03-04 18:38:56 +03:00
promise = { path = "promise" }
ratelimit_meter = "5.0"
rcgen = "0.7"
http_req = {version="0.6", default-features=false, features=["rust-tls"]}
regex = "1"
serde = {version="1.0", features = ["rc", "derive"]}
serde_json = "1.0"
serial = "0.4"
ssh2 = "0.8"
2020-01-10 10:48:33 +03:00
structopt = "0.3"
strsim = "0.10"
2019-06-14 01:00:57 +03:00
tabout = { path = "tabout" }
2019-03-23 23:57:26 +03:00
term = { path = "term" }
termwiz = { path = "termwiz" }
textwrap = "0.11"
2019-03-23 23:57:26 +03:00
toml = "0.4"
unicode-normalization = "0.1"
unicode-segmentation = "1.5"
2019-03-23 23:57:26 +03:00
unicode-width = "0.1"
url = "2"
2019-05-28 05:44:55 +03:00
varbincode = "0.1"
walkdir = "2"
window = { path = "window", features=["opengl", "wayland"]}
zstd = "0.4"
2019-02-17 23:55:02 +03:00
[target.'cfg(unix)'.dependencies]
daemonize = { git = "https://github.com/wez/daemonize" }
2019-02-17 23:55:02 +03:00
[target.'cfg(not(windows))'.dependencies]
# show a notification
notify-rust = "3"
# on linux, font-loader pulls in servo-font* crates which conflict with
# our newer font related deps, so we avoid it on linux
2019-03-23 23:57:26 +03:00
[target.'cfg(any(windows, target_os = "macos"))'.dependencies]
font-loader = { version = "0.8" }
font-kit = "0.5"
2019-03-23 23:57:26 +03:00
[target."cfg(windows)".dependencies]
dwrote = "0.9"
shared_library = "0.1"
2019-03-23 23:57:26 +03:00
uds_windows = "0.1"
winapi = { version = "0.3", features = [
2019-02-17 10:36:50 +03:00
"winuser",
"consoleapi",
"handleapi",
"fileapi",
"namedpipeapi",
2019-03-03 00:16:25 +03:00
"synchapi",
"winsock2",
2019-03-23 23:57:26 +03:00
]}
winrt-notification = "0.2"
[target.'cfg(any(target_os = "android", all(unix, not(target_os = "macos"))))'.dependencies]
fontconfig = { path = "deps/fontconfig" }
2018-02-21 09:33:09 +03:00
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.7"
core-graphics = "0.19"
core-text = "15.0"
2018-02-21 09:33:09 +03:00
[features]
default = ["vendor_openssl"]
# FIXME: find a way to magically disable vendor_openssl only on linux!
vendor_openssl = ["openssl/vendored"]
[workspace]
2019-02-23 07:59:03 +03:00
[profile.release]
opt-level = 3