aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
blob: 3c60ffdca364d29193f51f88868664a1f4c792e8 (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
[package]
name = "pty-process"
version = "0.1.0"
authors = ["Jesse Luehrs <doy@tozt.net>"]
edition = "2018"

[dependencies]
libc = "*"
nix = "0.17"
thiserror = "1.0"

async-io = { version = "1.3", optional = true }
async-process = { version = "1.0", optional = true }
tokio = { version = "1.2", optional = true, features = ["fs", "process", "net"] }
futures = { version = "0.3", optional = true }

[dev-dependencies]
async-std = { version = "*", features = ["unstable"] }
async-executor = "*"
smol = "*"
tokio = { version = "1.2", features = [ "rt-multi-thread", "macros", "io-std", "io-util" ] }

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

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