-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCargo.toml
103 lines (85 loc) · 2.57 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
100
101
102
103
[package]
name = "rquest-util"
description = "Common utilities for rquest"
repository = "https://github.com/0x676e67/rquest-util"
documentation = "https://docs.rs/rquest-util"
keywords = ["http", "client", "emulation", "ja3", "ja4"]
authors = ["0x676e67 <gngppz@gmail.com>"]
version = "0.2.2"
readme = "README.md"
license = "GPL-3.0"
edition = "2024"
rust-version = "1.85"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu"]
[features]
default = ["emulation", "gzip", "brotli", "deflate", "zstd"]
full = ["emulation", "emulation-rand", "gzip", "brotli", "deflate", "zstd"]
# Emulation devices
emulation = ["dep:serde", "dep:typed-builder"]
# Emulation devices with random data
emulation-rand = ["emulation", "dep:strum_macros", "dep:strum"]
# Compression algorithms
gzip = ["rquest/gzip"]
brotli = ["rquest/brotli"]
deflate = ["rquest/deflate"]
zstd = ["rquest/zstd"]
[dependencies]
rquest = { version = "3.0.2", default-features = false }
serde = { version = "1.0", features = ["derive"], optional = true }
typed-builder = { version = "0.20.0", optional = true }
strum = { version = "0.27.1", optional = true }
strum_macros = { version = "0.27.1", optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
hyper = { version = "1.1.0", default-features = false, features = [
"http1",
"http2",
"client",
"server",
] }
hyper-util = { version = "0.1.10", features = [
"http1",
"http2",
"client",
"client-legacy",
"server-auto",
"tokio",
] }
http = "1"
futures-util = { version = "0.3.0" }
tower = { version = "0.5.2", default-features = false, features = ["limit"] }
pin-project-lite = "0.2.0"
tracing = "0.1"
tracing-subscriber = "0.3.19"
[lib]
doctest = false
[[test]]
name = "client"
path = "tests/client.rs"
[[test]]
name = "emulation_chrome"
path = "tests/emulation_chrome.rs"
[[test]]
name = "emulation_okhttp"
path = "tests/emulation_okhttp.rs"
[[test]]
name = "emulation_firefox"
path = "tests/emulation_firefox.rs"
[[test]]
name = "emulation_safari"
path = "tests/emulation_safari.rs"
[[example]]
name = "emulation"
path = "examples/emulation.rs"
required-features = ["emulation", "gzip", "brotli", "deflate", "zstd", "rquest/full"]
[[example]]
name = "emulation_rand"
path = "examples/emulation_rand.rs"
required-features = ["emulation", "gzip", "brotli", "deflate", "zstd", "rquest/full", "emulation-rand"]
[[example]]
name = "emulation_option"
path = "examples/emulation_option.rs"
required-features = ["emulation", "gzip", "brotli", "deflate", "zstd", "rquest/full"]