-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
107 lines (86 loc) · 2.68 KB
/
Cargo.toml
File metadata and controls
107 lines (86 loc) · 2.68 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
[workspace]
members = []
[workspace.package]
edition = "2021"
license = "MIT"
authors = ["A3S Lab Team"]
[workspace.dependencies]
tokio = { version = "1.35", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
anyhow = "1.0"
tracing = "0.1"
async-trait = "0.1"
futures = "0.3"
tokio-test = "0.4"
[package]
name = "a3s-search"
version = "1.0.0"
edition.workspace = true
license.workspace = true
repository = "https://github.com/A3S-Lab/Search"
authors.workspace = true
description = "Embeddable meta search engine library with CLI and proxy pool support"
[[bin]]
name = "a3s-search"
path = "src/main.rs"
[features]
default = []
# Shared CDP client (required by chromium/lightpanda)
chromiumoxide = ["dep:chromiumoxide", "dep:which", "dep:zip"]
# Chrome/Chromium headless backend
chromium = ["chromiumoxide"]
# Lightpanda headless backend (Linux/macOS only; Windows unsupported by Lightpanda).
# Depends on chromiumoxide because it reuses chromiumoxide as the CDP client.
lightpanda = ["chromiumoxide"]
# Enable both chromium and lightpanda
all-headless = ["chromium", "lightpanda"]
[dependencies]
# Async runtime
tokio.workspace = true
# Serialization
serde.workspace = true
serde_json.workspace = true
# Error handling
thiserror.workspace = true
anyhow.workspace = true
# Logging
tracing.workspace = true
# Async utilities
async-trait.workspace = true
futures.workspace = true
# HTTP client
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json", "gzip", "brotli", "socks"] }
# HTML parsing
scraper = "0.22"
# URL handling
url = "2"
urlencoding = "2"
# Configuration file parsing
hcl-rs = "0.19"
# Headless browser (optional, for JS-rendered engines)
chromiumoxide = { version = "0.7", features = ["tokio-runtime"], optional = true }
# Browser detection and auto-install (optional, for headless feature)
which = { version = "7", optional = true }
zip = { version = "2", default-features = false, features = ["deflate"], optional = true }
# Self-update
a3s-updater = { version = "0.2", path = "../updater" }
# CLI
clap = { version = "4", features = ["derive"] }
# Logging for CLI
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[dev-dependencies]
tokio-test.workspace = true
# =============================================================================
# Release Profile — optimized for binary size
# =============================================================================
# a3s-search is a CLI/library with optional headless browser (chromiumoxide).
# I/O-bound workload — optimize for size over speed.
#
[profile.release]
opt-level = "s"
lto = "thin"
codegen-units = 1
strip = true
panic = "abort"