aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
blob: 592a97ec6439513bd81825a5891c52ee4f541079 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[package]
name = "pty-process"
version = "0.2.0"
authors = ["Jesse Luehrs <doy@tozt.net>"]
edition = "2021"

description = "spawn commands attached to a pty"
repository = "https://git.tozt.net/pty-process"
readme = "README.md"
keywords = ["pty", "spawn", "execute", "process"]
categories = ["asynchronous", "command-line-interface"]
license = "MIT"

[dependencies]
libc = "0.2.112"
nix = "0.23.0"

async-io = { version = "1.6.0", optional = true }
async-process = { version = "1.3.0", optional = true }
tokio = { version = "1.14.0", optional = true, features = ["fs", "process", "net"] }
futures = { version = "0.3.17", optional = true }

[dev-dependencies]
async-std = { version = "1.10.0", features = ["unstable"] }
async-executor = "1.4.1"
regex = "1.5.4"
smol = "1.2.5"
term_size = "0.3.2"
tokio = { version = "1.14.0", features = [ "rt-multi-thread", "macros", "io-std", "io-util", "time" ] }

[features]
default = ["backend-std"]

backend-std = []
backend-async-std = ["async-io", "async-process"]
backend-smol = ["async-io", "async-process"]
backend-tokio = ["tokio", "futures"]