-
Notifications
You must be signed in to change notification settings - Fork 13
/
Cargo.toml
47 lines (39 loc) · 1.38 KB
/
Cargo.toml
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
38
39
40
41
42
43
44
45
46
[package]
name = "expectrl"
version = "0.7.1"
authors = ["Maxim Zhiburt <[email protected]>"]
edition = "2021"
resolver = "2"
description = "A tool for automating terminal applications in Unix like Don libes expect"
repository = "https://github.com/zhiburt/expectrl"
homepage = "https://github.com/zhiburt/expectrl"
documentation = "https://docs.rs/expectrl"
license = "MIT"
categories = ["development-tools::testing", "os::unix-apis", "os::windows-apis"]
keywords = ["expect", "pty", "testing", "terminal", "automation"]
readme = "README.md"
[features]
# "pooling" feature works only for not async version on UNIX
polling = ["dep:polling", "dep:crossbeam-channel"]
async = ["futures-lite", "futures-timer", "async-io", "blocking"]
[dependencies]
regex = "1.6.0"
futures-lite = { version = "1.12.0", optional = true }
futures-timer = { version = "3.0.2", optional = true }
[target.'cfg(unix)'.dependencies]
ptyprocess = "0.4.1"
nix = "0.26"
async-io = { version = "1.9.0", optional = true }
polling = { version = "2.3.0", optional = true }
[target.'cfg(windows)'.dependencies]
conpty = "0.5.0"
blocking = { version = "1.2.0", optional = true }
crossbeam-channel = { version = "0.5.6", optional = true }
[package.metadata.docs.rs]
all-features = false
[[target.'cfg(unix)'.example]]
name = "log"
path = "examples/log.rs"
[[target.'cfg(windows)'.example]]
name = "powershell"
path = "examples/powershell.rs"