[package]
name = "portable-pty"
version = "0.9.0"
authors = ["Wez Furlong"]
edition = "2018"
repository = "https://github.com/wezterm/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.3", path = "../filedescriptor" }
log = "0.4"
libc = "0.2"
nix = {version="0.28", features=["term", "fs"]}
shell-words = "1.1"
serde_derive = {version="1.0", optional=true}
serde = {version="1.0", optional=true}
serial2 = "0.2"

[features]
default = []
serde_support = ["serde", "serde_derive"]

[target."cfg(windows)".dependencies]
bitflags = "1.3"
lazy_static = "1.4"
sha2 = "0.10"
winapi = { version = "0.3", features = [
    "winuser",
    "consoleapi",
    "handleapi",
    "fileapi",
    "libloaderapi",
    "namedpipeapi",
    "synchapi",
]}
winreg = "0.10"

[dev-dependencies]
smol = "2.0"
futures = "0.3"
