mirror of
https://github.com/wez/wezterm.git
synced 2024-12-02 01:46:43 +03:00
e6421d1b72
This breaking API change allows us to explicitly generate EOF when the taken writer is dropped. The examples have been updated to show how to manage read, write and waiting without deadlock for both linux and windows. Need to confirm that this is still good on macOS, but my confidence is high. I've also removed ssh2 support from this crate as part of this change. We haven't used it directly in wezterm in a long while and removing it from here means that there is slightly less code to keep compiling over and over. refs: https://github.com/wez/wezterm/discussions/2392 refs: https://github.com/wez/wezterm/issues/1396
44 lines
894 B
TOML
44 lines
894 B
TOML
[package]
|
|
name = "portable-pty"
|
|
version = "0.8.0"
|
|
authors = ["Wez Furlong"]
|
|
edition = "2018"
|
|
repository = "https://github.com/wez/wezterm"
|
|
description = "Cross platform pty interface"
|
|
license = "MIT"
|
|
documentation = "https://docs.rs/portable-pty"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
downcast-rs = "1.0"
|
|
filedescriptor = { version="0.8", path = "../filedescriptor" }
|
|
log = "0.4"
|
|
libc = "0.2"
|
|
nix = "0.24"
|
|
shell-words = "1.1"
|
|
serde_derive = {version="1.0", optional=true}
|
|
serde = {version="1.0", optional=true}
|
|
serial = "0.4"
|
|
|
|
[features]
|
|
default = []
|
|
serde_support = ["serde", "serde_derive"]
|
|
|
|
[target."cfg(windows)".dependencies]
|
|
bitflags = "1.3"
|
|
lazy_static = "1.4"
|
|
shared_library = "0.1"
|
|
winapi = { version = "0.3", features = [
|
|
"winuser",
|
|
"consoleapi",
|
|
"handleapi",
|
|
"fileapi",
|
|
"namedpipeapi",
|
|
"synchapi",
|
|
]}
|
|
winreg = "0.10"
|
|
|
|
[dev-dependencies]
|
|
smol = "1.2"
|
|
futures = "0.3"
|