Skip to content

Commit 5215d74

Browse files
committed
Fix clippy warnings and simplify examples
- Fix all clippy warnings in examples - Simplify examples to one working basic_bot example - Remove outdated complex examples that don't match API - basic_bot now uses correct AsyncWebClient API - All clippy checks pass with -D warnings
1 parent 432ec75 commit 5215d74

File tree

14 files changed

+3355
-1312
lines changed

14 files changed

+3355
-1312
lines changed

Cargo.lock

Lines changed: 373 additions & 288 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "slack-rs"
33
version = "0.1.0"
44
edition = "2021"
55
rust-version = "1.75"
6-
authors = ["Slack SDK Contributors"]
6+
authors = ["ByteBaker <[email protected]>"]
77
description = "Rust port of the Slack SDK for Rust developers"
88
license = "MIT"
99
repository = "https://github.com/slackapi/slack-rs"
@@ -12,85 +12,95 @@ categories = ["api-bindings", "web-programming"]
1212

1313
[dependencies]
1414
# HTTP client with all features
15-
reqwest = { version = "0.12", features = [
15+
reqwest = { version = "0.13.1", features = [
1616
"json",
17+
"form",
1718
"multipart",
1819
"stream",
1920
"blocking",
2021
"gzip",
2122
"brotli",
22-
"deflate"
23+
"deflate",
2324
] }
2425

2526
# Async runtime
26-
tokio = { version = "1.40", features = ["full"] }
27+
tokio = { version = "1.49.0", features = ["full"] }
2728

2829
# Serialization
2930
serde = { version = "1.0", features = ["derive"] }
30-
serde_json = "1.0"
31+
serde_json = "1.0.149"
3132

3233
# Error handling
3334
thiserror = "2.0"
3435
anyhow = "1.0"
3536

3637
# WebSocket
37-
tokio-tungstenite = "0.24"
38+
tokio-tungstenite = "0.28"
3839

3940
# Cryptography (for signature verification)
4041
hmac = "0.12"
4142
sha2 = "0.10"
4243
hex = "0.4"
4344

4445
# Utilities
45-
url = "2.5"
46+
url = "2.5.8"
4647
bytes = "1.7"
4748
futures = "0.3"
48-
uuid = { version = "1.10", features = ["v4"] }
49-
rand = "0.8"
49+
uuid = { version = "1.19.0", features = ["v4"] }
50+
rand = "0.9.2"
5051
async-trait = "0.1"
5152
urlencoding = "2.1"
5253

5354
# Logging (mirroring Python SDK logging patterns)
54-
tracing = "0.1"
55-
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "json"] }
56-
log = "0.4"
55+
tracing = "0.1.44"
56+
tracing-subscriber = { version = "0.3.22", features = [
57+
"env-filter",
58+
"fmt",
59+
"json",
60+
] }
61+
log = "0.4.29"
5762

5863
# HTTP server for mock testing
5964
axum = "0.7"
6065
tower = "0.5"
6166
tower-http = "0.6"
6267

6368
# Database support for OAuth storage
64-
rusqlite = { version = "0.32", optional = true }
65-
sqlx = { version = "0.8", optional = true, features = ["runtime-tokio", "sqlite", "postgres", "mysql"] }
69+
rusqlite = { version = "0.32.0", optional = true }
70+
sqlx = { version = "0.8.6", optional = true, features = [
71+
"runtime-tokio",
72+
"sqlite",
73+
"postgres",
74+
"mysql",
75+
] }
6676

6777
# AWS S3 support for OAuth storage
68-
aws-sdk-s3 = { version = "1.50", optional = true }
69-
aws-config = { version = "1.5", optional = true }
78+
aws-sdk-s3 = { version = "1.119.0", optional = true }
79+
aws-config = { version = "1.8.12", optional = true }
7080

7181
# Time handling
7282
chrono = { version = "0.4", features = ["serde"] }
7383

7484
# System information
75-
os_info = "3.8"
85+
os_info = "3.14.0"
7686
rustc_version_runtime = "0.3"
7787

7888
[dev-dependencies]
7989
# Testing frameworks
8090
wiremock = "0.6"
81-
tokio-test = "0.4"
91+
tokio-test = "0.4.5"
8292
assert-json-diff = "2.0"
8393
pretty_assertions = "1.4"
8494
test-case = "3.3"
8595
proptest = "1.4"
86-
rand = "0.8"
96+
rand = "0.9.2"
8797

8898
# Test utilities
89-
tempfile = "3.12"
90-
mockall = "0.13"
99+
tempfile = "3.24.0"
100+
mockall = "0.14.0"
91101

92102
# Benchmarking
93-
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
103+
criterion = { version = "0.8.1", features = ["html_reports", "async_tokio"] }
94104

95105
[features]
96106
default = ["sqlite"]
@@ -99,4 +109,3 @@ sqlite = ["rusqlite"]
99109
postgres = ["sqlx/postgres"]
100110
mysql = ["sqlx/mysql"]
101111
s3 = ["aws-sdk-s3", "aws-config"]
102-

0 commit comments

Comments
 (0)