-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
109 lines (87 loc) · 1.89 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
104
105
106
107
108
109
[package]
name = "news-rss"
version = "0.1.1"
edition = "2021"
[features]
cache-redis = ["dep:redis"]
publish-offline = []
crawler-llm = ["dep:openai_dive", "dep:html2text", "dep:html_editor"]
default = []
test-publish-rabbit = []
[profile.release]
lto = true
panic = "abort"
strip = "debuginfo"
[dependencies]
anyhow = "^1.0"
async-trait = "^0.1"
config = "^0.14"
dateparser = "^0.2"
derive_builder = "^0.20"
getset = "^0.1"
lapin = "^2.5"
regex = "1.11.0"
reqwest-middleware = "^0.3"
reqwest-retry = "^0.6"
rss = "^2.0"
serde_json = "^1.0"
thiserror = "^1.0"
tracing = "^0.1"
tracing-subscriber = "^0.3"
console-subscriber = "^0.4"
url-builder = "^0.1"
[dependencies.axum]
version = "^0.7"
features = ["tracing", "tower-log"]
[dependencies.chrono]
version = "^0.4"
features = ["serde"]
[dependencies.html2text]
optional = true
version = "^0.13"
[dependencies.moka]
version = "^0.12"
features = ["future"]
[dependencies.html_editor]
optional = true
version = "^0.7"
[dependencies.openai_dive]
optional = true
version = "^0.6"
[dependencies.redis]
optional = true
version = "^0.27"
features = ["aio", "tokio-comp", "connection-manager", "serde_json", "json"]
[dependencies.reqwest]
version = "^0.12"
features = ["json"]
[dependencies.serde]
version = "^1.0"
features = ["derive", "serde_derive"]
[dependencies.sqlx]
version = "^0.7"
features = ["postgres", "runtime-tokio", "chrono"]
[dependencies.tokio]
version = "^1.38"
features = ["full"]
[dependencies.tower-http]
version = "^0.6"
features = ["trace", "cors"]
[dependencies.utoipa]
version = "^5.1"
features = ["axum_extras", "chrono"]
[dependencies.utoipa-swagger-ui]
version = "^8.0"
features = ["axum"]
[dev-dependencies]
lazy_static = "^1.5"
wiremock = "^0.6"
[[bin]]
name = "news-rss"
path = "src/bin/main.rs"
[[test]]
name = "test-crawler-llm"
path = "tests/test_crawler_llm.rs"
[[test]]
name = "test-publish-feeds"
path = "tests/test_publish_feeds.rs"