4 releases

0.7.0 Aug 17, 2021
0.6.8 Aug 12, 2021
0.6.6 Apr 10, 2020
0.6.5 Apr 10, 2020

#365 in HTTP client

30 downloads per month
Used in flary

BSD-3-Clause

72KB
1.5K SLoC

cloudflare-rs

Rust library for the Cloudflare v4 API

Cloudflare's crates.io badge Cloudflare's docs.rs badge

⚠️ This library is a Work in Progress! ⚠️

This library provides convenience functions that wrap the Cloudflare API.

It provides two client implementations (asynchronous vs blocking). However, projects targeting wasm32 only get the asynchronous one (as it does not make sense to block in that target).

Fork

This is a fork of the cloudflare crate. I've tried upstreaming my patches but they have not yet been merged and release.

This might not grow beyond my personal fork with few bug fixes but I do intend to make some architectural changes that some might find useful.

Few Opinionated changes:

  • Only Async Api
  • Uses surf instead of reqwest allowing you to choose your own async runtime (smol, tokio, async_std)
  • Surf features like rustls, hyper-rs, etc
  • Better error handling?
  • Extensive debug and info logs with log

Dependencies

~11–16MB
~310K SLoC