Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ actix-web = "4.5.1"
lazy_static = "1.4.0"
redis = { version = "0.29.0", default-features = false, features = ["tokio-comp", "connection-manager"] }
regex = "1.10.4"
reqwest = { version = "0.12.4", default-features = false, features = ["rustls-tls", "gzip", "json", "socks"] }
reqwest = { version = "0.13.0", default-features = false, features = ["rustls-tls", "gzip", "json", "socks"] }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

In reqwest 0.13.x, was the Cargo feature rustls-tlsrenamed torustls, and is rustls-tls still accepted or removed? Please cite the official reqwest changelog/docs.

💡 Result:

Yes. In reqwest 0.13.0 the Cargo feature rustls-tls was renamed to rustls. (raw.githubusercontent.com)

In reqwest 0.13.x, rustls-tls is not a defined feature anymore (the crate’s [features] list includes rustls / rustls-no-provider, but no rustls-tls), so depending on reqwest = { version = "0.13", features = ["rustls-tls"] } will fail with “feature not found”. (raw.githubusercontent.com)

Citations:


Change rustls-tls to rustls in reqwest 0.13.0 features to fix the build break.

The rustls-tls feature was renamed to rustls in reqwest 0.13.0 and the old name is no longer available. Using rustls-tls will cause dependency resolution to fail with "feature not found".

Fix
-reqwest = { version = "0.13.0", default-features = false, features = ["rustls-tls", "gzip", "json", "socks"] }
+reqwest = { version = "0.13.0", default-features = false, features = ["rustls", "gzip", "json", "socks"] }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
reqwest = { version = "0.13.0", default-features = false, features = ["rustls-tls", "gzip", "json", "socks"] }
reqwest = { version = "0.13.0", default-features = false, features = ["rustls", "gzip", "json", "socks"] }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Cargo.toml` at line 14, The reqwest dependency line uses the removed feature
name "rustls-tls"; update the features array for reqwest (the dependency entry
starting with reqwest = { version = "0.13.0", ... }) to replace "rustls-tls"
with the new feature name "rustls" so the features list reads ... features =
["rustls", "gzip", "json", "socks"] ... ensuring dependency resolution succeeds.

serde = {version = "1.0.200", default-features = false, features = ["derive"]}
serde_json = "1.0.116"
tokio = { version = "1.37.0", features = ["full"] }
Loading