forked from mattsse/chromiumoxide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
99 lines (87 loc) · 2.81 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[package]
name = "chromiumoxide"
version = "0.5.7"
rust-version = "1.70"
authors = ["Matthias Seitz <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
homepage = "https://github.com/mattsse/chromiumoxide"
repository = "https://github.com/mattsse/chromiumoxide"
description = "Library for interacting with a chrome instance with the chrome devtools protocol"
keywords = ["chrome", "chromedriver", "puppeteer", "automation"]
categories = ["web-programming", "api-bindings", "development-tools::testing"]
[dependencies]
async-tungstenite = "0.23"
serde = { version = "1", features = ["derive"] }
async-std = { version = "1.5", features = [
"attributes",
"unstable",
], optional = true }
futures = "0.3"
chromiumoxide_types = { path = "chromiumoxide_types", version = "0.5" }
chromiumoxide_cdp = { path = "chromiumoxide_cdp", version = "0.5" }
chromiumoxide_fetcher = { path = "chromiumoxide_fetcher", version = "0.5", default-features = false, optional = true }
serde_json = "1"
which = "4"
thiserror = "1"
url = "2"
base64 = "0.21"
fnv = "1"
futures-timer = "3"
cfg-if = "1"
tokio = { version = "1", features = [
"rt",
"rt-multi-thread",
"time",
"fs",
"macros",
"process",
], optional = true }
tracing = "0.1"
pin-project-lite = "0.2"
dunce = "1"
bytes = { version = "1.4.0", features = ["serde"], optional = true }
reqwest = { version = "0.11.20", default-features = false }
[target.'cfg(windows)'.dependencies]
winreg = "0.51"
[dev-dependencies]
quote = "1"
proc-macro2 = "1"
chrono = "0.4.1"
tracing-subscriber = "0.3"
tokio = { version = "1", features = ["rt-multi-thread", "time", "macros"] }
[features]
default = ["async-std-runtime", "bytes"]
async-std-runtime = ["async-std", "async-tungstenite/async-std-runtime"]
tokio-runtime = ["tokio", "async-tungstenite/tokio-runtime"]
fetcher = []
bytes = ["dep:bytes"]
# Temporary features until cargo weak dependencies bug is fixed
# See https://github.com/rust-lang/cargo/issues/10801
_fetcher-rustls-async-std = ["fetcher", "chromiumoxide_fetcher/_rustls-async-std"]
_fetcher-rusttls-tokio = ["fetcher", "chromiumoxide_fetcher/_rustls-tokio"]
_fetcher-native-async-std = ["fetcher", "chromiumoxide_fetcher/_native-async-std"]
_fetcher-native-tokio = ["fetcher", "chromiumoxide_fetcher/_native-tokio"]
[[example]]
name = "wiki-tokio"
required-features = ["tokio-runtime"]
[[example]]
name = "iframe-workaround"
required-features = ["tokio-runtime", "tokio"]
[[example]]
name = "httpfuture"
required-features = ["tokio-runtime"]
[[example]]
name = "fetcher"
required-features = ["_fetcher-native-async-std"]
[[example]]
name = "fetcher-tokio"
required-features = ["tokio-runtime", "_fetcher-native-tokio"]
[workspace]
members = [
"chromiumoxide_pdl",
"chromiumoxide_types",
"chromiumoxide_cdp",
"chromiumoxide_fetcher",
]