-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
40 lines (35 loc) · 1.1 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
[workspace]
members = [".", "reqwest-scraper-macros"]
[package]
name = "reqwest-scraper"
version = "0.5.8"
edition = "2021"
description = "Web scraping integration with reqwest"
license = "MIT"
authors = ["holmofy"]
repository = "https://github.com/holmofy/reqwest-scraper"
[lib]
name = "reqwest_scraper"
path = "src/lib.rs"
[dependencies]
async-trait = "0.1"
itertools = "0.13"
reqwest = "0.12"
mime = "0.3"
encoding_rs = "0.8"
jsonpath_lib = { version = "0.3", optional = true }
libxml = { version = "0.3", optional = true }
scraper = { version = "0.20", optional = true }
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
reqwest-scraper-macros = { version = "0.5.3", path = "./reqwest-scraper-macros", optional = true }
thiserror = "1.0"
[features]
default = ["jsonpath", "css_selector", "xpath", "macros"]
jsonpath = ["jsonpath_lib", "serde", "serde_json", "reqwest/json"]
xpath = ["libxml"]
css_selector = ["scraper"]
macros = ["reqwest-scraper-macros"]
[dev-dependencies]
anyhow = { version = "1.0", features = ["backtrace"] }
tokio = { version = "1", features = ["full"] }