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

贡献者指南