forked from reasonkit/reasonkit-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
222 lines (194 loc) · 4.51 KB
/
Cargo.toml
File metadata and controls
222 lines (194 loc) · 4.51 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
[package]
name = "reasonkit-web"
version = "0.1.6"
edition = "2021"
rust-version = "1.75"
license = "Apache-2.0"
authors = ["ReasonKit Team <team@reasonkit.sh>"]
description = "High-performance MCP server for browser automation, web capture, and content extraction. Rust-powered CDP client for AI agents."
repository = "https://github.com/reasonkit/reasonkit-web"
homepage = "https://reasonkit.sh"
documentation = "https://docs.rs/reasonkit-web"
readme = "README.md"
keywords = ["mcp", "browser-automation", "headless", "cdp", "web-scraping"]
categories = ["web-programming", "web-programming::http-server", "development-tools::testing", "asynchronous"]
# Exclude large assets from crates.io package
include = [
"/src/**/*",
"/benches/**/*",
"/examples/**/*",
"/config/**/*",
"/Cargo.toml",
"/Cargo.lock",
"/README.md",
"/LICENSE",
"/CHANGELOG.md",
]
[badges]
maintenance = { status = "actively-developed" }
[package.metadata.docs.rs]
# Don't use all-features (wasm requires wasm32 target not available on docs.rs)
features = ["full"]
rustdoc-args = ["--cfg", "docsrs"]
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
# CDP/Browser automation
chromiumoxide = { version = "0.8", features = ["tokio-runtime"] }
# MCP server
rmcp = "0.17"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Date/time handling
chrono = { version = "0.4", features = ["serde"] }
# WASM support (optional; enabled via `wasm` feature)
wasm-bindgen = { version = "0.2", optional = true }
# HTTP client
# Note: reqwest 0.13+ renamed 'rustls-tls' feature to 'rustls'
reqwest = { version = "0.13", features = ["json", "rustls"] }
# Error handling
thiserror = "2"
anyhow = "1"
# Logging/tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# CLI
clap = { version = "4", features = ["derive"] }
# HTML/Content processing
scraper = "0.25"
html5ever = "0.36"
base64 = "0.22.1"
futures = "0.3.32"
regex = "1.12.3"
rand = "0.10.0"
htmlescape = "0.3"
# Web framework
axum = "0.8"
http = "1"
tower = "0.5"
tower-http = { version = "0.6", features = ["cors"] }
hyper = "1"
# Handlers dependencies
metrics = "0.24"
url = "2"
uuid = { version = "1", features = ["v4", "serde"] }
hdrhistogram = "7"
parking_lot = "0.12"
sysinfo = "0.38"
# Stripe webhook handling
hmac = "0.12"
sha2 = "0.10"
hex = "0.4"
async-trait = "0.1"
[dev-dependencies]
tokio-test = "0.4"
pretty_assertions = "1"
criterion = { version = "0.8", features = ["html_reports"] }
proptest = "1.10"
# WASM browser testing dependencies
wasm-bindgen = "0.2"
wasm-bindgen-test = "0.3"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = [
"Window",
"Document",
"Element",
"HtmlElement",
"Node",
"NodeList",
"DomTokenList",
"CssStyleDeclaration",
"Storage",
"Navigator",
"Location",
"Performance",
"console",
"Headers",
"Request",
"RequestInit",
"RequestMode",
"Response",
"WebSocket",
"BinaryType",
"MessageEvent",
"CloseEvent",
"ErrorEvent",
"Event",
"EventTarget",
"CustomEvent",
"CustomEventInit",
"MouseEvent",
"MouseEventInit",
"AbortController",
"AbortSignal",
]}
[[bin]]
name = "rk-web"
path = "src/main.rs"
[lib]
name = "reasonkit_web"
path = "src/lib.rs"
crate-type = ["rlib", "cdylib"]
[[bench]]
name = "capture_bench"
harness = false
[features]
default = []
full = ["stealth", "screenshots"]
stealth = []
screenshots = []
wasm = ["dep:wasm-bindgen"]
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = [
"Window",
"Document",
"Element",
"HtmlElement",
"Node",
"NodeList",
"DomTokenList",
"CssStyleDeclaration",
"Storage",
"Navigator",
"Location",
"Performance",
"console",
"Headers",
"Request",
"RequestInit",
"RequestMode",
"Response",
"WebSocket",
"BinaryType",
"MessageEvent",
"CloseEvent",
"ErrorEvent",
"Event",
"EventTarget",
"CustomEvent",
"CustomEventInit",
"MouseEvent",
"MouseEventInit",
"AbortController",
"AbortSignal",
]}
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
[profile.bench]
lto = true
codegen-units = 1