-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update rust crate ureq to v3 #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ keywords = ["llm", "routing", "local-first", "dispatch"] | |
| categories = ["api-bindings"] | ||
|
|
||
| [dependencies] | ||
| ureq = "2" | ||
| ureq = "3" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Changelog not updated for the dependency upgrade The repository requires the AGENTS.md ruleAGENTS.md states: "Conventional Commit titles; update Was this helpful? React with 👍 or 👎 to provide feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 Automated dependency bump lacks accompanying source migration and MSRV check This is a bot-style dependency bump ( Was this helpful? React with 👍 or 👎 to provide feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 ureq 3 default TLS backend and feature set differ from v2 ureq 2 with default features used rustls+webpki-roots; ureq 3's default features (rustls with platform verifier / different root store handling) can change TLS trust behaviour for the outbound calls to api.privy.io and api.bridge.xyz ( Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| serde_json = "1" | ||
| base64 = "0.22" # 0.5.1 — wallet_hook(privy) needs Basic auth encoding | ||
| urlencoding = "2" # 0.5.1 — wallet_hook(privy) URL-encodes the wallet_id path segment | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Rust client library stops working after HTTP library upgrade
The Rust client's HTTP dependency is upgraded to a new major version (
ureq = "3"atsdk/rust/Cargo.toml:13) without updating any of the calling code, so the Rust SDK no longer builds or works at all.Impact: Anyone using or publishing the Rust client gets a broken package; payment-retry behavior would also be lost even after a mechanical fix.
ureq 3 removed the v2 request/response API used throughout sdk/rust/src/lib.rs
All call sites still use the ureq 2 API:
ureq::Request/ureq::Responsetypes and.set(k, v)header builder (sdk/rust/src/lib.rs:148-152,157,166,174-186,237-241,253-256) — in ureq 3 these types moved (http::Request/http::Response<Body>) and.set()became.header()..send_string(..)/.into_string()(sdk/rust/src/lib.rs:158-159,176,186,242,257) — replaced by.send(..)andbody_mut().read_to_string().Err(ureq::Error::Status(402, r))(sdk/rust/src/lib.rs:160,169) — ureq 3's variant isError::StatusCode(u16)and carries no response, so the x402 challenge body needed byretry_with_hook(sdk/rust/src/lib.rs:174-177) is unavailable unless the config is switched tohttp_status_as_error(false)and the 402 handled on theOkpath.The upgrade must be accompanied by a full migration of these call sites.
Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.