DioxusLabs/blitz

Add `ureq` backend to `blitz-net`

開放

#181 建立於 2025年1月20日

 (0 則留言) (0 個反應) (0 位負責人)Rust (152 個分叉)github user discovery
good first issue

倉庫指標

星標
 (3,639 顆星)
PR 合併指標
 (平均合併 7小時 25分鐘) (30 天內合併 50 個 PR)

描述

The motivation for this is primarily as a binary size optimisation for apps that want networking but do not need 100s of connections and do not otherwise need tokio or an async executor in their stack.

The implementation should:

  • Be part of the existing blitz-net crate with feature flags for each backend
  • Use the new 3.x version of ureq
  • Split the reqwest and ureq implementations in separate files/modules
  • Use a threadpool to allow for multiple concurrent requests
  • Implement the blitz_net::get_text method as well as blitz_net::Provider

貢獻者指南